public class XpsDocument extends XpsPartBase implements IDisposable, java.lang.AutoCloseable
.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
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: ReachFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: ReachFramework
|
static java.lang.String |
className
Qualified class name: System.Windows.Xps.Packaging.XpsDocument
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
XpsDocument() |
XpsDocument(java.lang.Object instance)
Internal constructor.
|
XpsDocument(Package _package) |
XpsDocument(Package _package,
CompressionOption compressionOption) |
XpsDocument(Package _package,
CompressionOption compressionOption,
java.lang.String path) |
XpsDocument(java.lang.String path,
FileAccess packageAccess) |
XpsDocument(java.lang.String path,
FileAccess packageAccess,
CompressionOption compressionOption) |
getUri, setUriEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringDispose, ToIDisposablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public XpsDocument()
throws java.lang.Throwable
java.lang.Throwablepublic XpsDocument(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic XpsDocument(Package _package) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, PlatformNotSupportedException, FormatException, NotSupportedException, CultureNotFoundException, UnreachableException, OutOfMemoryException
public XpsDocument(Package _package, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, FormatException, NotSupportedException, UnreachableException, OutOfMemoryException
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
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionCultureNotFoundExceptionUnreachableExceptionpublic XpsDocument(java.lang.String path,
FileAccess packageAccess)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
FormatException,
NotSupportedException,
CultureNotFoundException,
UnreachableException,
OutOfMemoryException,
InvalidOperationException,
InvalidDataException,
ObjectDisposedException,
XmlException,
FileFormatException,
IOException,
KeyNotFoundException,
UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionFormatExceptionNotSupportedExceptionCultureNotFoundExceptionUnreachableExceptionOutOfMemoryExceptionInvalidOperationExceptionInvalidDataExceptionObjectDisposedExceptionXmlExceptionFileFormatExceptionIOExceptionKeyNotFoundExceptionUnauthorizedAccessExceptionpublic XpsDocument(java.lang.String path,
FileAccess packageAccess,
CompressionOption compressionOption)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
IndexOutOfRangeException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
UnreachableException,
OutOfMemoryException,
UriFormatException,
ObjectDisposedException,
InvalidDataException,
FormatException,
IOException,
XmlException,
FileFormatException,
RankException,
ArrayTypeMismatchException,
UnauthorizedAccessException,
KeyNotFoundException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionUnreachableExceptionOutOfMemoryExceptionUriFormatExceptionObjectDisposedExceptionInvalidDataExceptionFormatExceptionIOExceptionXmlExceptionFileFormatExceptionRankExceptionArrayTypeMismatchExceptionUnauthorizedAccessExceptionKeyNotFoundExceptionpublic IXpsFixedDocumentSequenceWriter AddFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XpsPackagingException, IOException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, NullReferenceException, FormatException, KeyNotFoundException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionXpsPackagingExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionNullReferenceExceptionFormatExceptionKeyNotFoundExceptionpublic XpsThumbnail AddThumbnail(XpsImageType imageType) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, InvalidDataException, OutOfMemoryException, XpsPackagingException, PlatformNotSupportedException, KeyNotFoundException, FormatException, XmlException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionInvalidDataExceptionOutOfMemoryExceptionXpsPackagingExceptionPlatformNotSupportedExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionpublic static XpsDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into XpsDocument, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedXpsDocument instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Close()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
IOException,
ArgumentNullException,
FileFormatException,
ArgumentOutOfRangeException,
InvalidOperationException,
XmlException,
NotSupportedException,
PlatformNotSupportedException,
KeyNotFoundException,
IndexOutOfRangeException
public static XpsDocumentWriter CreateXpsDocumentWriter(XpsDocument xpsDocument) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, ArgumentNullException
public PackageProperties getCoreDocumentProperties() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, PlatformNotSupportedException, IndexOutOfRangeException, IOException, ArgumentNullException, FileFormatException, OutOfMemoryException, XmlException
public FixedDocumentSequence GetFixedDocumentSequence() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, XpsPackagingException, PlatformNotSupportedException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException, ArgumentNullException, UnreachableException, UriFormatException, IOException, FileFormatException, XmlException, InvalidDataException, XamlSchemaException, NotImplementedException, XamlException, XamlParseException, InvalidEnumArgumentException, InvalidCastException, FormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionXpsPackagingExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionArgumentNullExceptionUnreachableExceptionUriFormatExceptionIOExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionXamlSchemaExceptionNotImplementedExceptionXamlExceptionXamlParseExceptionInvalidEnumArgumentExceptionInvalidCastExceptionFormatExceptionpublic IXpsFixedDocumentSequenceReader getFixedDocumentSequenceReader() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, UnreachableException, NullReferenceException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionNullReferenceExceptionpublic boolean getIsReader()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic boolean getIsSignable()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException,
IOException,
ArgumentNullException,
IndexOutOfRangeException,
FileFormatException,
XmlException,
InvalidDataException,
OutOfMemoryException,
PlatformNotSupportedException,
KeyNotFoundException,
XpsPackagingException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionKeyNotFoundExceptionXpsPackagingExceptionpublic boolean getIsWriter()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDisposablegetJCOAssemblyName in class XpsPartBaseString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDisposablegetJCOClassName in class XpsPartBaseString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDisposablegetJCOInstance in class XpsPartBaseObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDisposablegetJCOObjectName in class XpsPartBaseString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDisposablegetJCOType in class XpsPartBaseJCType representing the CLR Type of the instantiated Classpublic XpsThumbnail getThumbnail() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, IOException, ArgumentNullException, IndexOutOfRangeException, FileFormatException, XmlException, InvalidDataException, OutOfMemoryException, PlatformNotSupportedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionIndexOutOfRangeExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionpublic 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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionNullReferenceExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionIOExceptionArgumentNullExceptionFileFormatExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundExceptionInvalidDataExceptionXpsPackagingExceptionCryptographicExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class XpsPartBasepublic void setThumbnail(XpsThumbnail Thumbnail) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionpublic 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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionIOExceptionArgumentNullExceptionInvalidDataExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionXpsPackagingExceptionPlatformNotSupportedExceptionFileFormatExceptionXmlExceptionCryptographicExceptionFormatExceptionCryptographicUnexpectedOperationExceptionpublic 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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionArgumentNullExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionFormatExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionFileFormatExceptionXmlExceptionCryptographicExceptionCryptographicUnexpectedOperationExceptionpublic 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
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionPlatformNotSupportedExceptionArgumentNullExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionFormatExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionFileFormatExceptionXmlExceptionCryptographicExceptionCryptographicUnexpectedOperationException