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=4.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, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, SecurityException, UriFormatException, OutOfMemoryException
public XpsDocument(Package _package, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, SecurityException, MemberAccessException, NullReferenceException, UriFormatException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionpublic XpsDocument(Package _package, CompressionOption compressionOption, java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, SecurityException, MemberAccessException, NullReferenceException, ConfigurationException, UriFormatException, OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionConfigurationExceptionUriFormatExceptionOutOfMemoryExceptionpublic XpsDocument(java.lang.String path,
FileAccess packageAccess)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
SecurityException,
UriFormatException,
OutOfMemoryException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
InvalidCastException,
NotSupportedException,
FileFormatException,
FormatException,
XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionSecurityExceptionUriFormatExceptionOutOfMemoryExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionNotSupportedExceptionFileFormatExceptionFormatExceptionXmlExceptionpublic XpsDocument(java.lang.String path,
FileAccess packageAccess,
CompressionOption compressionOption)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
SecurityException,
MemberAccessException,
NullReferenceException,
UriFormatException,
OutOfMemoryException,
NotSupportedException,
FileNotFoundException,
DirectoryNotFoundException,
UnauthorizedAccessException,
IOException,
PathTooLongException,
DriveNotFoundException,
OperationCanceledException,
InvalidCastException,
FileFormatException,
KeyNotFoundException,
XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionSecurityExceptionMemberAccessExceptionNullReferenceExceptionUriFormatExceptionOutOfMemoryExceptionNotSupportedExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionIOExceptionPathTooLongExceptionDriveNotFoundExceptionOperationCanceledExceptionInvalidCastExceptionFileFormatExceptionKeyNotFoundExceptionXmlExceptionpublic IXpsFixedDocumentSequenceWriter AddFixedDocumentSequence() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XpsPackagingException, IOException, FileFormatException, XmlException, InvalidDataException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, KeyNotFoundException, NotSupportedException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXpsPackagingExceptionIOExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionKeyNotFoundExceptionNotSupportedExceptionpublic XpsThumbnail AddThumbnail(XpsImageType imageType) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, IOException, InvalidDataException, IndexOutOfRangeException, XpsPackagingException, NotSupportedException, KeyNotFoundException, XmlException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionIOExceptionInvalidDataExceptionIndexOutOfRangeExceptionXpsPackagingExceptionNotSupportedExceptionKeyNotFoundExceptionXmlExceptionpublic 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,
ArgumentNullException,
MissingManifestResourceException,
InvalidOperationException,
ObjectDisposedException,
IOException,
ArgumentException,
FileFormatException,
ArgumentOutOfRangeException,
FormatException,
KeyNotFoundException,
AbandonedMutexException
public static XpsDocumentWriter CreateXpsDocumentWriter(XpsDocument xpsDocument) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionpublic PackageProperties getCoreDocumentProperties() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, FileFormatException, KeyNotFoundException, NotSupportedException, XmlException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionFileFormatExceptionKeyNotFoundExceptionNotSupportedExceptionXmlExceptionpublic FixedDocumentSequence GetFixedDocumentSequence() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, AbandonedMutexException, XpsPackagingException, IOException, FileFormatException, XmlException, InvalidDataException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, NotSupportedException, NullReferenceException, XamlException, XamlParseException, OverflowException, InvalidCastException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionAbandonedMutexExceptionXpsPackagingExceptionIOExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionNotSupportedExceptionNullReferenceExceptionXamlExceptionXamlParseExceptionOverflowExceptionInvalidCastExceptionpublic IXpsFixedDocumentSequenceReader getFixedDocumentSequenceReader() throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, IOException, ArgumentException, ArgumentOutOfRangeException, FileFormatException, XmlException, InvalidDataException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionIOExceptionArgumentExceptionArgumentOutOfRangeExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionpublic boolean getIsReader()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
MissingManifestResourceException,
NotImplementedException,
ArgumentException,
InvalidOperationException
public boolean getIsSignable()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
MissingManifestResourceException,
InvalidOperationException,
IOException,
ArgumentException,
FileFormatException,
XmlException,
InvalidDataException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
OutOfMemoryException,
KeyNotFoundException,
XpsPackagingException,
NotSupportedException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionMissingManifestResourceExceptionInvalidOperationExceptionIOExceptionArgumentExceptionFileFormatExceptionXmlExceptionInvalidDataExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionKeyNotFoundExceptionXpsPackagingExceptionNotSupportedExceptionpublic boolean getIsWriter()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException,
MissingManifestResourceException,
NotImplementedException,
ArgumentException,
InvalidOperationException
public 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, ObjectDisposedException, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, IOException, ArgumentException, FileFormatException, XmlException, InvalidDataException, ArgumentOutOfRangeException, IndexOutOfRangeException, OutOfMemoryException
public void RemoveSignature(XpsDigitalSignature signature) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, NullReferenceException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, IOException, FileFormatException, IndexOutOfRangeException, CultureNotFoundException, NotSupportedException, XmlException, KeyNotFoundException, InvalidDataException, XpsPackagingException, CryptographicException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionNullReferenceExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionFileFormatExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionXmlExceptionKeyNotFoundExceptionInvalidDataExceptionXpsPackagingExceptionCryptographicExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class XpsPartBasepublic void setThumbnail(XpsThumbnail Thumbnail) throws java.lang.Throwable, ObjectDisposedException
java.lang.ThrowableObjectDisposedExceptionpublic XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, NotSupportedException, FileFormatException, XmlException, CryptographicException, AccessViolationException, SecurityException, CryptographicUnexpectedOperationException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionNotSupportedExceptionFileFormatExceptionXmlExceptionCryptographicExceptionAccessViolationExceptionSecurityExceptionCryptographicUnexpectedOperationExceptionpublic XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, FormatException, AccessViolationException, CryptographicUnexpectedOperationException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionNotSupportedExceptionSecurityExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionFileFormatExceptionXmlExceptionCryptographicExceptionFormatExceptionAccessViolationExceptionCryptographicUnexpectedOperationExceptionpublic XpsDigitalSignature SignDigitally(X509Certificate certificate, boolean embedCertificate, XpsDigSigPartAlteringRestrictions restrictions, Guid id, boolean testIsSignable) throws java.lang.Throwable, ObjectDisposedException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, MissingManifestResourceException, NotSupportedException, SecurityException, IOException, InvalidDataException, KeyNotFoundException, XpsPackagingException, FileFormatException, XmlException, CryptographicException, FormatException, AccessViolationException, CryptographicUnexpectedOperationException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionMissingManifestResourceExceptionNotSupportedExceptionSecurityExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionXpsPackagingExceptionFileFormatExceptionXmlExceptionCryptographicExceptionFormatExceptionAccessViolationExceptionCryptographicUnexpectedOperationException