Package system.printing
Class LocalPrintServer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.printing.PrintSystemObject
-
- system.printing.PrintServer
-
- system.printing.LocalPrintServer
-
- All Implemented Interfaces:
AutoCloseable
,IJCOBridgeReflected
public class LocalPrintServer extends PrintServer
The base .NET class managing System.Printing.LocalPrintServer, System.Printing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.See: https://docs.microsoft.com/en-us/dotnet/api/System.Printing.LocalPrintServer
-
-
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.LocalPrintServerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description LocalPrintServer()
LocalPrintServer(Object instance)
Internal constructor.LocalPrintServer(String[] propertiesFilter)
LocalPrintServer(String[] propertiesFilter, PrintSystemDesiredAccess desiredAccess)
LocalPrintServer(LocalPrintServerIndexedProperty[] propertiesFilter)
LocalPrintServer(LocalPrintServerIndexedProperty[] propertiesFilter, PrintSystemDesiredAccess desiredAccess)
LocalPrintServer(PrintSystemDesiredAccess desiredAccess)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalPrintServer
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoLocalPrintServer
, a cast assert is made to check if types are compatible.void
Commit()
boolean
ConnectToPrintQueue(String printQueuePath)
boolean
ConnectToPrintQueue(PrintQueue printer)
boolean
DisconnectFromPrintQueue(String printQueuePath)
boolean
DisconnectFromPrintQueue(PrintQueue printer)
PrintQueue
getDefaultPrintQueue()
static PrintQueue
GetDefaultPrintQueue()
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 Typevoid
Refresh()
void
setDefaultPrintQueue(PrintQueue DefaultPrintQueue)
void
setJCOInstance(JCObject instance)
-
Methods inherited from class system.printing.PrintServer
DeletePrintQueue, DeletePrintQueue, getBeepEnabled, getDefaultPortThreadPriority, getDefaultSchedulerPriority, getDefaultSpoolDirectory, getEventLog, getMajorVersion, getMinorVersion, getNetPopup, getPortThreadPriority, GetPrintQueue, GetPrintQueue, GetPrintQueue, GetPrintQueues, GetPrintQueues, GetPrintQueues, GetPrintQueues, GetPrintQueues, GetPrintQueues, GetPrintQueues, GetPrintQueues, getRestartJobOnPoolEnabled, getRestartJobOnPoolTimeout, getSchedulerPriority, getSubSystemVersion, InstallPrintQueue, InstallPrintQueue, InstallPrintQueue, InstallPrintQueue, InstallPrintQueue, InstallPrintQueue, InstallPrintQueue, InstallPrintQueue, setBeepEnabled, setDefaultPortThreadPriority, setDefaultSchedulerPriority, setDefaultSpoolDirectory, setEventLog, setMajorVersion, setMinorVersion, setNetPopup, setPortThreadPriority, setRestartJobOnPoolEnabled, setRestartJobOnPoolTimeout, setSchedulerPriority
-
Methods inherited from class system.printing.PrintSystemObject
close, Dispose, getName, getParent, getPropertiesCollection, setName, setPropertiesCollection
-
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.LocalPrintServer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalPrintServer
public LocalPrintServer(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
LocalPrintServer
public LocalPrintServer() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, AbandonedMutexException, InvalidEnumArgumentException, Win32Exception, NullReferenceException, IndexOutOfRangeException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
NotSupportedException
InvalidOperationException
MemberAccessException
TargetException
TargetParameterCountException
ObjectDisposedException
AbandonedMutexException
InvalidEnumArgumentException
Win32Exception
NullReferenceException
IndexOutOfRangeException
-
LocalPrintServer
public LocalPrintServer(LocalPrintServerIndexedProperty[] propertiesFilter) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, AbandonedMutexException, InvalidEnumArgumentException, Win32Exception, NullReferenceException, IndexOutOfRangeException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
NotSupportedException
InvalidOperationException
MemberAccessException
TargetException
TargetParameterCountException
ObjectDisposedException
AbandonedMutexException
InvalidEnumArgumentException
Win32Exception
NullReferenceException
IndexOutOfRangeException
-
LocalPrintServer
public LocalPrintServer(LocalPrintServerIndexedProperty[] propertiesFilter, PrintSystemDesiredAccess desiredAccess) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, AbandonedMutexException, OutOfMemoryException, InvalidEnumArgumentException, Win32Exception, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, NotImplementedException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
NotSupportedException
InvalidOperationException
MemberAccessException
TargetException
TargetParameterCountException
ObjectDisposedException
AbandonedMutexException
OutOfMemoryException
InvalidEnumArgumentException
Win32Exception
NullReferenceException
IndexOutOfRangeException
CultureNotFoundException
NotImplementedException
-
LocalPrintServer
public LocalPrintServer(PrintSystemDesiredAccess desiredAccess) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, AbandonedMutexException, OutOfMemoryException, InvalidEnumArgumentException, Win32Exception, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, NotImplementedException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
NotSupportedException
InvalidOperationException
MemberAccessException
TargetException
TargetParameterCountException
ObjectDisposedException
AbandonedMutexException
OutOfMemoryException
InvalidEnumArgumentException
Win32Exception
NullReferenceException
IndexOutOfRangeException
CultureNotFoundException
NotImplementedException
-
LocalPrintServer
public LocalPrintServer(String[] propertiesFilter) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, AbandonedMutexException, InvalidEnumArgumentException, Win32Exception, NullReferenceException, IndexOutOfRangeException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
NotSupportedException
InvalidOperationException
MemberAccessException
TargetException
TargetParameterCountException
ObjectDisposedException
AbandonedMutexException
InvalidEnumArgumentException
Win32Exception
NullReferenceException
IndexOutOfRangeException
-
LocalPrintServer
public LocalPrintServer(String[] propertiesFilter, PrintSystemDesiredAccess desiredAccess) throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, FormatException, ArgumentException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, AbandonedMutexException, OutOfMemoryException, InvalidEnumArgumentException, Win32Exception, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, NotImplementedException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
FormatException
ArgumentException
NotSupportedException
InvalidOperationException
MemberAccessException
TargetException
TargetParameterCountException
ObjectDisposedException
AbandonedMutexException
OutOfMemoryException
InvalidEnumArgumentException
Win32Exception
NullReferenceException
IndexOutOfRangeException
CultureNotFoundException
NotImplementedException
-
-
Method Detail
-
getJCOAssemblyName
public String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classPrintServer
- 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 classPrintServer
- 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 classPrintServer
- 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 classPrintServer
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classPrintServer
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classPrintServer
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static LocalPrintServer cast(IJCOBridgeReflected from) throws Throwable
Try to cast theIJCOBridgeReflected
instance intoLocalPrintServer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
LocalPrintServer
instance- Throws:
Throwable
- in case of error during cast operation
-
ConnectToPrintQueue
public boolean ConnectToPrintQueue(PrintQueue printer) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, IndexOutOfRangeException, NullReferenceException, NotImplementedException, CultureNotFoundException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
ObjectDisposedException
AbandonedMutexException
IndexOutOfRangeException
NullReferenceException
NotImplementedException
CultureNotFoundException
-
ConnectToPrintQueue
public boolean ConnectToPrintQueue(String printQueuePath) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, MissingMethodException, TargetInvocationException, OutOfMemoryException
-
DisconnectFromPrintQueue
public boolean DisconnectFromPrintQueue(PrintQueue printer) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, IndexOutOfRangeException, NullReferenceException, NotImplementedException, CultureNotFoundException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
ObjectDisposedException
AbandonedMutexException
IndexOutOfRangeException
NullReferenceException
NotImplementedException
CultureNotFoundException
-
DisconnectFromPrintQueue
public boolean DisconnectFromPrintQueue(String printQueuePath) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, MissingMethodException, TargetInvocationException, OutOfMemoryException
-
GetDefaultPrintQueue
public static PrintQueue GetDefaultPrintQueue() throws Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, NotSupportedException, TargetParameterCountException, InvalidOperationException, ObjectDisposedException, AbandonedMutexException, Win32Exception, NullReferenceException, IndexOutOfRangeException, CultureNotFoundException, MissingManifestResourceException
- Throws:
Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
NotSupportedException
TargetParameterCountException
InvalidOperationException
ObjectDisposedException
AbandonedMutexException
Win32Exception
NullReferenceException
IndexOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
-
Commit
public void Commit() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, NullReferenceException, IndexOutOfRangeException, NotImplementedException
- Overrides:
Commit
in classPrintServer
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
ObjectDisposedException
AbandonedMutexException
NullReferenceException
IndexOutOfRangeException
NotImplementedException
-
Refresh
public void Refresh() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, NullReferenceException, TargetParameterCountException, IndexOutOfRangeException, PrintQueueException
- Overrides:
Refresh
in classPrintServer
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
ObjectDisposedException
AbandonedMutexException
NullReferenceException
TargetParameterCountException
IndexOutOfRangeException
PrintQueueException
-
getDefaultPrintQueue
public PrintQueue getDefaultPrintQueue() throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, ObjectDisposedException, AbandonedMutexException, NullReferenceException, IndexOutOfRangeException, NotImplementedException
- Throws:
Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidEnumArgumentException
InvalidOperationException
Win32Exception
SecurityException
NotSupportedException
ObjectDisposedException
AbandonedMutexException
NullReferenceException
IndexOutOfRangeException
NotImplementedException
-
setDefaultPrintQueue
public void setDefaultPrintQueue(PrintQueue DefaultPrintQueue) throws Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidEnumArgumentException, InvalidOperationException, Win32Exception, SecurityException, NotSupportedException, NullReferenceException, ObjectDisposedException, AbandonedMutexException
-
-