Package system.windows.xps.packaging
Class XpsDocument
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.xps.packaging.XpsPartBase
-
- system.windows.xps.packaging.XpsDocument
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,IDisposable
public class XpsDocument extends XpsPartBase implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.Windows.Xps.Packaging.XpsDocument, ReachFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Xps.Packaging.XpsDocument
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.StringassemblyFullNameFully assembly qualified name: ReachFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35static java.lang.StringassemblyShortNameAssembly name: ReachFrameworkstatic java.lang.StringclassNameQualified class name: System.Windows.Xps.Packaging.XpsDocumentstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description XpsDocument()XpsDocument(java.lang.Object instance)Internal constructor.XpsDocument(java.lang.String path, FileAccess packageAccess)XpsDocument(java.lang.String path, FileAccess packageAccess, CompressionOption compressionOption)XpsDocument(Package _package)XpsDocument(Package _package, CompressionOption compressionOption)XpsDocument(Package _package, CompressionOption compressionOption, java.lang.String path)
-
Method Summary
-
Methods inherited from class system.windows.xps.packaging.XpsPartBase
getUri, setUri
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.IDisposable
Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: ReachFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: ReachFramework- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Xps.Packaging.XpsDocument- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XpsDocument
public XpsDocument(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
XpsDocument
public XpsDocument() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption, java.lang.String path) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, NullReferenceException, OutOfMemoryException, ExternalException, InvalidOperationException, CultureNotFoundException, UnreachableException, UriFormatException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionUnreachableExceptionUriFormatException
-
XpsDocument
public XpsDocument(Package _package, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, FormatException, NotSupportedException, UnreachableException, OutOfMemoryException, UriFormatException
-
XpsDocument
public XpsDocument(Package _package) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, FormatException, NotSupportedException, CultureNotFoundException, UnreachableException, OutOfMemoryException, UriFormatException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess, CompressionOption compressionOption) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, UnreachableException, UriFormatException, OutOfMemoryException, ObjectDisposedException, IOException, InvalidDataException, FormatException, XmlException, FileFormatException, RankException, ArrayTypeMismatchException, UnauthorizedAccessException, KeyNotFoundException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionUnreachableExceptionUriFormatExceptionOutOfMemoryExceptionObjectDisposedExceptionIOExceptionInvalidDataExceptionFormatExceptionXmlExceptionFileFormatExceptionRankExceptionArrayTypeMismatchExceptionUnauthorizedAccessExceptionKeyNotFoundException
-
XpsDocument
public XpsDocument(java.lang.String path, FileAccess packageAccess) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, NotSupportedException, CultureNotFoundException, UnreachableException, OutOfMemoryException, InvalidOperationException, UriFormatException, InvalidDataException, ObjectDisposedException, XmlException, FileFormatException, IOException, KeyNotFoundException, UnauthorizedAccessException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionCultureNotFoundExceptionUnreachableExceptionOutOfMemoryExceptionInvalidOperationExceptionUriFormatExceptionInvalidDataExceptionObjectDisposedExceptionXmlExceptionFileFormatExceptionIOExceptionKeyNotFoundExceptionUnauthorizedAccessException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIDisposable- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classXpsPartBase- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIDisposable- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classXpsPartBase- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIDisposable- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classXpsPartBase- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIDisposable- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classXpsPartBase- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classXpsPartBase
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDisposable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classXpsPartBase- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static XpsDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoXpsDocument, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
XpsDocumentinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetFixedDocumentSequence
public FixedDocumentSequence GetFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XpsPackagingException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, UriFormatException, UnreachableException, IOException, FileFormatException, XmlException, InvalidDataException, XamlSchemaException, NotImplementedException, XamlException, XamlParseException, InvalidEnumArgumentException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionXpsPackagingExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionUriFormatExceptionUnreachableExceptionIOExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionXamlSchemaExceptionNotImplementedExceptionXamlExceptionXamlParseExceptionInvalidEnumArgumentExceptionInvalidCastException
-
AddFixedDocumentSequence
public IXpsFixedDocumentSequenceWriter AddFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XpsPackagingException, IOException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, NullReferenceException, FormatException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionXpsPackagingExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionNullReferenceExceptionFormatExceptionKeyNotFoundException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id, boolean testIsSignable) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionArgumentNullExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionFormatExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionFileFormatExceptionXmlExceptionCryptographicExceptionCryptographicUnexpectedOperationException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, ArgumentNullException, IndexOutOfRangeException, ArrayTypeMismatchException, OutOfMemoryException, FormatException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, CryptographicUnexpectedOperationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionArgumentNullExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionFormatExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionFileFormatExceptionXmlExceptionCryptographicExceptionCryptographicUnexpectedOperationException
-
SignDigitally
public XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, InvalidDataException, IndexOutOfRangeException, KeyNotFoundException, XpsPackagingException, PlatformNotSupportedException, FileFormatException, XmlException, CryptographicException, FormatException, CryptographicUnexpectedOperationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionInvalidDataExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionXpsPackagingExceptionPlatformNotSupportedExceptionFileFormatExceptionXmlExceptionCryptographicExceptionFormatExceptionCryptographicUnexpectedOperationException
-
AddThumbnail
public XpsThumbnail AddThumbnail(XpsImageType imageType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, InvalidDataException, OutOfMemoryException, XpsPackagingException, PlatformNotSupportedException, KeyNotFoundException, FormatException, XmlException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionInvalidDataExceptionOutOfMemoryExceptionXpsPackagingExceptionPlatformNotSupportedExceptionKeyNotFoundExceptionFormatExceptionXmlException
-
CreateXpsDocumentWriter
public static XpsDocumentWriter CreateXpsDocumentWriter(XpsDocument xpsDocument) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
-
Close
public void Close() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, IOException, ArgumentNullException, FileFormatException, ArgumentOutOfRangeException, InvalidOperationException, XmlException, NotSupportedException, PlatformNotSupportedException, KeyNotFoundException, IndexOutOfRangeException
-
RemoveSignature
public void RemoveSignature(XpsDigitalSignature signature) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, NullReferenceException, PlatformNotSupportedException, IndexOutOfRangeException, IOException, ArgumentNullException, FileFormatException, OutOfMemoryException, XmlException, KeyNotFoundException, InvalidDataException, XpsPackagingException, CryptographicException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionNullReferenceExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionIOExceptionArgumentNullExceptionFileFormatExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionInvalidDataExceptionXpsPackagingExceptionCryptographicException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getIsReader
public boolean getIsReader() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
getIsSignable
public boolean getIsSignable() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, PlatformNotSupportedException, KeyNotFoundException, XpsPackagingException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionKeyNotFoundExceptionXpsPackagingException
-
getIsWriter
public boolean getIsWriter() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
getCoreDocumentProperties
public PackageProperties getCoreDocumentProperties() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, IOException, ArgumentNullException, FileFormatException, OutOfMemoryException, XmlException
-
getFixedDocumentSequenceReader
public IXpsFixedDocumentSequenceReader getFixedDocumentSequenceReader() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, NullReferenceException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionNullReferenceException
-
getThumbnail
public XpsThumbnail getThumbnail() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, PlatformNotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionPlatformNotSupportedException
-
setThumbnail
public void setThumbnail(XpsThumbnail Thumbnail) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedException
-
-