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:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class LocalPrintServer extends PrintServer
The base .NET class managing System.Printing.LocalPrintServer, System.Printing, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Printing.LocalPrintServer
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Printing, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.String
assemblyShortName
Assembly name: System.Printingstatic java.lang.String
className
Qualified class name: System.Printing.LocalPrintServerstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description LocalPrintServer()
LocalPrintServer(java.lang.Object instance)
Internal constructor.LocalPrintServer(java.lang.String[] propertiesFilter)
LocalPrintServer(java.lang.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(java.lang.String printQueuePath)
boolean
ConnectToPrintQueue(PrintQueue printer)
boolean
DisconnectFromPrintQueue(java.lang.String printQueuePath)
boolean
DisconnectFromPrintQueue(PrintQueue printer)
PrintQueue
getDefaultPrintQueue()
static PrintQueue
GetDefaultPrintQueue()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
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
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Printing, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Printing- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Printing.LocalPrintServer- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocalPrintServer
public LocalPrintServer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
LocalPrintServer
public LocalPrintServer() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidEnumArgumentException, Win32Exception, ObjectDisposedException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentNullException
RankException
ArrayTypeMismatchException
InvalidEnumArgumentException
Win32Exception
ObjectDisposedException
OutOfMemoryException
-
LocalPrintServer
public LocalPrintServer(LocalPrintServerIndexedProperty[] propertiesFilter, PrintSystemDesiredAccess desiredAccess) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, OutOfMemoryException, ArrayTypeMismatchException, RankException, InvalidEnumArgumentException, Win32Exception, ObjectDisposedException, ExternalException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentNullException
OutOfMemoryException
ArrayTypeMismatchException
RankException
InvalidEnumArgumentException
Win32Exception
ObjectDisposedException
ExternalException
CultureNotFoundException
-
LocalPrintServer
public LocalPrintServer(LocalPrintServerIndexedProperty[] propertiesFilter) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidEnumArgumentException, Win32Exception, ObjectDisposedException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentNullException
RankException
ArrayTypeMismatchException
InvalidEnumArgumentException
Win32Exception
ObjectDisposedException
OutOfMemoryException
-
LocalPrintServer
public LocalPrintServer(PrintSystemDesiredAccess desiredAccess) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, OutOfMemoryException, ArrayTypeMismatchException, RankException, InvalidEnumArgumentException, Win32Exception, ObjectDisposedException, ExternalException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentNullException
OutOfMemoryException
ArrayTypeMismatchException
RankException
InvalidEnumArgumentException
Win32Exception
ObjectDisposedException
ExternalException
CultureNotFoundException
-
LocalPrintServer
public LocalPrintServer(java.lang.String[] propertiesFilter, PrintSystemDesiredAccess desiredAccess) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, OutOfMemoryException, ArrayTypeMismatchException, RankException, InvalidEnumArgumentException, Win32Exception, ObjectDisposedException, ExternalException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentNullException
OutOfMemoryException
ArrayTypeMismatchException
RankException
InvalidEnumArgumentException
Win32Exception
ObjectDisposedException
ExternalException
CultureNotFoundException
-
LocalPrintServer
public LocalPrintServer(java.lang.String[] propertiesFilter) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, NotSupportedException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentNullException, RankException, ArrayTypeMismatchException, InvalidEnumArgumentException, Win32Exception, ObjectDisposedException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
NotSupportedException
IndexOutOfRangeException
PlatformNotSupportedException
InvalidOperationException
ArgumentNullException
RankException
ArrayTypeMismatchException
InvalidEnumArgumentException
Win32Exception
ObjectDisposedException
OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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:
java.lang.Throwable
- in case of error during cast operation
-
ConnectToPrintQueue
public boolean ConnectToPrintQueue(PrintQueue printer) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, ObjectDisposedException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
ObjectDisposedException
CultureNotFoundException
-
ConnectToPrintQueue
public boolean ConnectToPrintQueue(java.lang.String printQueuePath) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
OutOfMemoryException
-
DisconnectFromPrintQueue
public boolean DisconnectFromPrintQueue(PrintQueue printer) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, ObjectDisposedException, CultureNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
ObjectDisposedException
CultureNotFoundException
-
DisconnectFromPrintQueue
public boolean DisconnectFromPrintQueue(java.lang.String printQueuePath) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
OutOfMemoryException
-
GetDefaultPrintQueue
public static PrintQueue GetDefaultPrintQueue() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, InvalidOperationException, ArgumentNullException, Win32Exception, ObjectDisposedException, OutOfMemoryException, CultureNotFoundException
-
Commit
public void Commit() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException
- Overrides:
Commit
in classPrintServer
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
-
Refresh
public void Refresh() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, PrintQueueException, ObjectDisposedException, CultureNotFoundException
- Overrides:
Refresh
in classPrintServer
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
PrintQueueException
ObjectDisposedException
CultureNotFoundException
-
getDefaultPrintQueue
public PrintQueue getDefaultPrintQueue() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, ObjectDisposedException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
ArgumentNullException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
InvalidOperationException
InvalidEnumArgumentException
Win32Exception
NotSupportedException
ObjectDisposedException
-
setDefaultPrintQueue
public void setDefaultPrintQueue(PrintQueue DefaultPrintQueue) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentNullException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException
-
-