Package system.printing
Class PrintQueueStream
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.io.Stream
-
- system.printing.PrintQueueStream
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class PrintQueueStream extends Stream
The base .NET class managing System.Printing.PrintQueueStream, System.Printing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.See: https://docs.microsoft.com/en-us/dotnet/api/System.Printing.PrintQueueStream
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Printing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static String
assemblyShortName
Assembly name: System.Printingstatic String
className
Qualified class name: System.Printing.PrintQueueStreamstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PrintQueueStream()
PrintQueueStream(Object instance)
Internal constructor.PrintQueueStream(PrintQueue printQueue, String printJobName)
PrintQueueStream(PrintQueue printQueue, String printJobName, boolean commitDataOnClose)
PrintQueueStream(PrintQueue printQueue, String printJobName, boolean commitDataOnClose, PrintTicket printTicket)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IAsyncResult
BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state)
IAsyncResult
BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4)
static PrintQueueStream
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPrintQueueStream
, a cast assert is made to check if types are compatible.void
Close()
void
EndWrite(IAsyncResult asyncResult)
void
Flush()
String
getJCOAssemblyName()
Returns the reflected Assembly nameString
getJCOClassName()
Returns the reflected Class nameObject
getJCOInstance()
Returns the instantiated classString
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeint
getJobIdentifier()
void
HandlePackagingProgressEvent(NetObject sender, PackagingProgressEventArgs e)
int
Read(byte[] buffer, int offset, int count)
int
Read(JCORefOut dupParam0, int dupParam1, int dupParam2)
long
Seek(long offset, SeekOrigin origin)
void
setJCOInstance(JCObject instance)
void
SetLength(long value)
void
Write(byte[] buffer, int offset, int count)
void
Write(JCORefOut dupParam0, int dupParam1, int dupParam2)
-
Methods inherited from class system.io.Stream
BeginRead, BeginRead, close, CopyTo, CopyTo, CopyToAsync, CopyToAsync, CopyToAsync, Dispose, EndRead, FlushAsync, FlushAsync, getCanRead, getCanSeek, getCanTimeout, getCanWrite, getLength, getPosition, getReadTimeout, getWriteTimeout, ReadByte, setPosition, setReadTimeout, setWriteTimeout, Synchronized, WriteAsync, WriteAsync, WriteAsync, WriteAsync, WriteByte
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Printing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Printing- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Printing.PrintQueueStream- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrintQueueStream
public PrintQueueStream(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
PrintQueueStream
public PrintQueueStream(PrintQueue printQueue, String printJobName) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, CultureNotFoundException, NotSupportedException, PathTooLongException, DllNotFoundException, IOException
-
PrintQueueStream
public PrintQueueStream(PrintQueue printQueue, String printJobName, boolean commitDataOnClose) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, CultureNotFoundException, NotSupportedException, PathTooLongException, DllNotFoundException, IOException
-
PrintQueueStream
public PrintQueueStream(PrintQueue printQueue, String printJobName, boolean commitDataOnClose, PrintTicket printTicket) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, CultureNotFoundException, NotSupportedException, PathTooLongException, DllNotFoundException, IOException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classStream
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classStream
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classStream
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classStream
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classStream
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classStream
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PrintQueueStream cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoPrintQueueStream
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PrintQueueStream
instance- Throws:
Throwable
- in case of error during cast operation
-
Seek
public long Seek(long offset, SeekOrigin origin) throws Throwable
-
BeginWrite
public IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, NetObject state) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, OutOfMemoryException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException
- Overrides:
BeginWrite
in classStream
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
Win32Exception
InvalidOperationException
OutOfMemoryException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
NullReferenceException
-
BeginWrite
public IAsyncResult BeginWrite(JCORefOut dupParam0, int dupParam1, int dupParam2, AsyncCallback dupParam3, NetObject dupParam4) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, OutOfMemoryException, WaitHandleCannotBeOpenedException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, SecurityException, NullReferenceException
- Overrides:
BeginWrite
in classStream
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
Win32Exception
InvalidOperationException
OutOfMemoryException
WaitHandleCannotBeOpenedException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
SecurityException
NullReferenceException
-
Close
public void Close() throws Throwable, ArgumentException, ArgumentNullException, Win32Exception, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException
-
EndWrite
public void EndWrite(IAsyncResult asyncResult) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, OutOfMemoryException, ObjectDisposedException, AbandonedMutexException
-
HandlePackagingProgressEvent
public void HandlePackagingProgressEvent(NetObject sender, PackagingProgressEventArgs e) throws Throwable, ArgumentException, ArgumentNullException, Win32Exception, InvalidOperationException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, ArgumentOutOfRangeException, OutOfMemoryException
-
SetLength
public void SetLength(long value) throws Throwable, NotSupportedException
- Overrides:
SetLength
in classStream
- Throws:
Throwable
NotSupportedException
-
Write
public void Write(byte[] buffer, int offset, int count) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException
-
Write
public void Write(JCORefOut dupParam0, int dupParam1, int dupParam2) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException
-
getJobIdentifier
public int getJobIdentifier() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, Win32Exception, InvalidOperationException, NotImplementedException
-
-