public class Package extends NetObject implements IDisposable, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Packaging.Package
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: WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: WindowsBase
|
static java.lang.String |
className
Qualified class name: System.IO.Packaging.Package
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Package() |
Package(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Package |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Package, a cast assert is made to check if types are compatible. |
void |
close() |
void |
Close() |
PackagePart |
CreatePart(Uri partUri,
java.lang.String contentType) |
PackagePart |
CreatePart(Uri partUri,
java.lang.String contentType,
CompressionOption compressionOption) |
PackageRelationship |
CreateRelationship(Uri targetUri,
TargetMode targetMode,
java.lang.String relationshipType) |
PackageRelationship |
CreateRelationship(Uri targetUri,
TargetMode targetMode,
java.lang.String relationshipType,
java.lang.String id) |
void |
DeletePart(Uri partUri) |
void |
DeleteRelationship(java.lang.String id) |
void |
Flush() |
FileAccess |
getFileOpenAccess() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
PackageProperties |
getPackageProperties() |
PackagePart |
GetPart(Uri partUri) |
PackagePartCollection |
GetParts() |
PackageRelationship |
GetRelationship(java.lang.String id) |
PackageRelationshipCollection |
GetRelationships() |
PackageRelationshipCollection |
GetRelationshipsByType(java.lang.String relationshipType) |
static Package |
Open(Stream stream) |
static Package |
Open(Stream stream,
FileMode packageMode) |
static Package |
Open(Stream stream,
FileMode packageMode,
FileAccess packageAccess) |
static Package |
Open(java.lang.String path) |
static Package |
Open(java.lang.String path,
FileMode packageMode) |
static Package |
Open(java.lang.String path,
FileMode packageMode,
FileAccess packageAccess) |
static Package |
Open(java.lang.String path,
FileMode packageMode,
FileAccess packageAccess,
FileShare packageShare) |
boolean |
PartExists(Uri partUri) |
boolean |
RelationshipExists(java.lang.String id) |
void |
setJCOInstance(JCObject instance) |
Equals, 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 Package()
throws java.lang.Throwable
java.lang.Throwablepublic Package(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Package cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Package, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPackage 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
java.lang.Throwablepublic PackagePart CreatePart(Uri partUri, java.lang.String contentType) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, UriFormatException, CultureNotFoundException, OutOfMemoryException, NotSupportedException, SecurityException, UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionArgumentOutOfRangeExceptionUriFormatExceptionCultureNotFoundExceptionOutOfMemoryExceptionNotSupportedExceptionSecurityExceptionUnauthorizedAccessExceptionpublic PackagePart CreatePart(Uri partUri, java.lang.String contentType, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, CultureNotFoundException, NotSupportedException, MissingMethodException, SecurityException, UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionNotSupportedExceptionMissingMethodExceptionSecurityExceptionUnauthorizedAccessExceptionpublic PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, ArgumentOutOfRangeException, KeyNotFoundException, FileFormatException, XmlException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionArgumentOutOfRangeExceptionKeyNotFoundExceptionFileFormatExceptionXmlExceptionInvalidCastExceptionNullReferenceExceptionpublic PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType, java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, CultureNotFoundException, NotSupportedException, IndexOutOfRangeException, KeyNotFoundException, FileFormatException, XmlException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionCultureNotFoundExceptionNotSupportedExceptionIndexOutOfRangeExceptionKeyNotFoundExceptionFileFormatExceptionXmlExceptionInvalidCastExceptionNullReferenceExceptionpublic void DeletePart(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, UriFormatException, IndexOutOfRangeException, OutOfMemoryException, CultureNotFoundException, NotSupportedException, KeyNotFoundException, SecurityException, UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionUriFormatExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionCultureNotFoundExceptionNotSupportedExceptionKeyNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionpublic void DeleteRelationship(java.lang.String id)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
FormatException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IOException,
NotSupportedException,
MissingMethodException,
SecurityException,
IndexOutOfRangeException,
UnauthorizedAccessException,
XmlException,
KeyNotFoundException,
FileFormatException,
InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionNotSupportedExceptionMissingMethodExceptionSecurityExceptionIndexOutOfRangeExceptionUnauthorizedAccessExceptionXmlExceptionKeyNotFoundExceptionFileFormatExceptionInvalidCastExceptionpublic void Flush()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
FormatException,
MissingManifestResourceException,
NotImplementedException,
ObjectDisposedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IOException,
NotSupportedException,
SecurityException,
UnauthorizedAccessException,
FileFormatException,
KeyNotFoundException,
XmlException,
IndexOutOfRangeException,
OverflowException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionNotSupportedExceptionSecurityExceptionUnauthorizedAccessExceptionFileFormatExceptionKeyNotFoundExceptionXmlExceptionIndexOutOfRangeExceptionOverflowExceptionpublic FileAccess getFileOpenAccess() throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDisposablegetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDisposablegetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDisposablegetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDisposablegetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDisposablegetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic PackageProperties getPackageProperties() throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, UnauthorizedAccessException, IOException, FileFormatException, OutOfMemoryException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionNotSupportedExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionFileFormatExceptionOutOfMemoryExceptionXmlExceptionpublic PackagePart GetPart(Uri partUri) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, UriFormatException, CultureNotFoundException, OutOfMemoryException, NotSupportedException, KeyNotFoundException, SecurityException, UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionArgumentOutOfRangeExceptionUriFormatExceptionCultureNotFoundExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionpublic PackagePartCollection GetParts() throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, NotSupportedException, FileFormatException, KeyNotFoundException, MissingMethodException, SecurityException, IndexOutOfRangeException, UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionNotSupportedExceptionFileFormatExceptionKeyNotFoundExceptionMissingMethodExceptionSecurityExceptionIndexOutOfRangeExceptionUnauthorizedAccessExceptionpublic PackageRelationship GetRelationship(java.lang.String id) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, SecurityException, UnauthorizedAccessException, ArgumentOutOfRangeException, XmlException, KeyNotFoundException, FileFormatException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionSecurityExceptionUnauthorizedAccessExceptionArgumentOutOfRangeExceptionXmlExceptionKeyNotFoundExceptionFileFormatExceptionInvalidCastExceptionNullReferenceExceptionpublic PackageRelationshipCollection GetRelationships() throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, ArgumentOutOfRangeException, KeyNotFoundException, FileFormatException, XmlException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionArgumentOutOfRangeExceptionKeyNotFoundExceptionFileFormatExceptionXmlExceptionInvalidCastExceptionNullReferenceExceptionpublic PackageRelationshipCollection GetRelationshipsByType(java.lang.String relationshipType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IOException, NotSupportedException, KeyNotFoundException, FileFormatException, XmlException, InvalidCastException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIOExceptionNotSupportedExceptionKeyNotFoundExceptionFileFormatExceptionXmlExceptionInvalidCastExceptionNullReferenceExceptionpublic static Package Open(Stream stream) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, ArgumentOutOfRangeException, FileFormatException, CultureNotFoundException, KeyNotFoundException, FormatException, XmlException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFileFormatExceptionCultureNotFoundExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionIndexOutOfRangeExceptionpublic static Package Open(Stream stream, FileMode packageMode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, ArgumentOutOfRangeException, FileFormatException, CultureNotFoundException, KeyNotFoundException, FormatException, XmlException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFileFormatExceptionCultureNotFoundExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionIndexOutOfRangeExceptionpublic static Package Open(Stream stream, FileMode packageMode, FileAccess packageAccess) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, ArgumentOutOfRangeException, FileFormatException, CultureNotFoundException, KeyNotFoundException, XmlException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionArgumentOutOfRangeExceptionFileFormatExceptionCultureNotFoundExceptionKeyNotFoundExceptionXmlExceptionIndexOutOfRangeExceptionpublic static Package Open(java.lang.String path) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, PathTooLongException, FileFormatException, NullReferenceException, SecurityException, KeyNotFoundException, FormatException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionPathTooLongExceptionFileFormatExceptionNullReferenceExceptionSecurityExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionpublic static Package Open(java.lang.String path, FileMode packageMode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, PathTooLongException, FileFormatException, NullReferenceException, SecurityException, KeyNotFoundException, FormatException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionPathTooLongExceptionFileFormatExceptionNullReferenceExceptionSecurityExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionpublic static Package Open(java.lang.String path, FileMode packageMode, FileAccess packageAccess) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, ArgumentOutOfRangeException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, PathTooLongException, FileFormatException, NullReferenceException, SecurityException, KeyNotFoundException, FormatException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionPathTooLongExceptionFileFormatExceptionNullReferenceExceptionSecurityExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionpublic static Package Open(java.lang.String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidCastException, ArgumentOutOfRangeException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, IOException, NotSupportedException, PathTooLongException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, DriveNotFoundException, OperationCanceledException, FileFormatException, NullReferenceException, SecurityException, KeyNotFoundException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidCastExceptionArgumentOutOfRangeExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionPathTooLongExceptionFileNotFoundExceptionDirectoryNotFoundExceptionUnauthorizedAccessExceptionDriveNotFoundExceptionOperationCanceledExceptionFileFormatExceptionNullReferenceExceptionSecurityExceptionKeyNotFoundExceptionXmlExceptionpublic boolean PartExists(Uri partUri) throws java.lang.Throwable, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ArgumentException, ObjectDisposedException, InvalidOperationException, IOException, ArgumentOutOfRangeException, UriFormatException, CultureNotFoundException, OutOfMemoryException, NotSupportedException, KeyNotFoundException, SecurityException, UnauthorizedAccessException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionArgumentOutOfRangeExceptionUriFormatExceptionCultureNotFoundExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundExceptionSecurityExceptionUnauthorizedAccessExceptionpublic boolean RelationshipExists(java.lang.String id)
throws java.lang.Throwable,
ArgumentNullException,
FormatException,
MissingManifestResourceException,
NotImplementedException,
ArgumentException,
ObjectDisposedException,
InvalidOperationException,
IOException,
NotSupportedException,
SecurityException,
UnauthorizedAccessException,
ArgumentOutOfRangeException,
XmlException,
KeyNotFoundException,
FileFormatException,
InvalidCastException,
NullReferenceException
java.lang.ThrowableArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionNotImplementedExceptionArgumentExceptionObjectDisposedExceptionInvalidOperationExceptionIOExceptionNotSupportedExceptionSecurityExceptionUnauthorizedAccessExceptionArgumentOutOfRangeExceptionXmlExceptionKeyNotFoundExceptionFileFormatExceptionInvalidCastExceptionNullReferenceExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject