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: System.IO.Packaging, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.IO.Packaging
|
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, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, NotSupportedException, NullReferenceException, OutOfMemoryException, ExternalException, InvalidOperationException, UriFormatException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionUriFormatExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionpublic PackagePart CreatePart(Uri partUri, java.lang.String contentType, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IOException, OutOfMemoryException, ExternalException, UnreachableException, UriFormatException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionOutOfMemoryExceptionExternalExceptionUnreachableExceptionUriFormatExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, InvalidOperationException, OutOfMemoryException, FileFormatException, XmlException, NotSupportedException
public PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType, java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IOException, FileFormatException, XmlException, OverflowException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionFileFormatExceptionXmlExceptionOverflowExceptionInvalidCastExceptionpublic void DeletePart(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IOException, OutOfMemoryException, ExternalException, UnreachableException, UriFormatException, KeyNotFoundException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionOutOfMemoryExceptionExternalExceptionUnreachableExceptionUriFormatExceptionKeyNotFoundExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidCastExceptionpublic void DeleteRelationship(java.lang.String id)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException,
IOException,
IndexOutOfRangeException,
FormatException,
XmlException,
FileFormatException,
OverflowException,
InvalidCastException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFormatExceptionXmlExceptionFileFormatExceptionOverflowExceptionInvalidCastExceptionpublic void Flush()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException,
IOException,
FileFormatException,
OutOfMemoryException,
FormatException,
XmlException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
SecurityException,
OverflowException,
KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionFileFormatExceptionOutOfMemoryExceptionFormatExceptionXmlExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionSecurityExceptionOverflowExceptionKeyNotFoundExceptionpublic FileAccess getFileOpenAccess() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException
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, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IOException, IndexOutOfRangeException, FileFormatException, UriFormatException, OutOfMemoryException, XmlException, RankException, ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionUriFormatExceptionOutOfMemoryExceptionXmlExceptionRankExceptionArrayTypeMismatchExceptionpublic PackagePart GetPart(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, NotSupportedException, NullReferenceException, OutOfMemoryException, ExternalException, InvalidOperationException, UriFormatException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionNotSupportedExceptionNullReferenceExceptionOutOfMemoryExceptionExternalExceptionInvalidOperationExceptionUriFormatExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionpublic PackagePartCollection GetParts() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IOException, IndexOutOfRangeException, FileFormatException, RankException, ArrayTypeMismatchException, InvalidCastException, OutOfMemoryException, KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionRankExceptionArrayTypeMismatchExceptionInvalidCastExceptionOutOfMemoryExceptionKeyNotFoundExceptionpublic PackageRelationship GetRelationship(java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, InvalidOperationException, XmlException, OutOfMemoryException, FileFormatException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionInvalidOperationExceptionXmlExceptionOutOfMemoryExceptionFileFormatExceptionNotSupportedExceptionpublic PackageRelationshipCollection GetRelationships() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, InvalidOperationException, OutOfMemoryException, FileFormatException, XmlException, NotSupportedException
public PackageRelationshipCollection GetRelationshipsByType(java.lang.String relationshipType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, IOException, IndexOutOfRangeException, OutOfMemoryException, FileFormatException, XmlException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionFileFormatExceptionXmlExceptionpublic static Package Open(Stream stream) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FileFormatException, IOException, ObjectDisposedException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidDataException, CultureNotFoundException, KeyNotFoundException, FormatException, XmlException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionFileFormatExceptionIOExceptionObjectDisposedExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidDataExceptionCultureNotFoundExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionpublic static Package Open(Stream stream, FileMode packageMode) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, FileFormatException, IOException, ObjectDisposedException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidDataException, CultureNotFoundException, KeyNotFoundException, FormatException, XmlException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionFileFormatExceptionIOExceptionObjectDisposedExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionInvalidDataExceptionCultureNotFoundExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionpublic static Package Open(Stream stream, FileMode packageMode, FileAccess packageAccess) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FileFormatException, IOException, InvalidDataException, CultureNotFoundException, KeyNotFoundException, FormatException, OutOfMemoryException, XmlException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionFileFormatExceptionIOExceptionInvalidDataExceptionCultureNotFoundExceptionKeyNotFoundExceptionFormatExceptionOutOfMemoryExceptionXmlExceptionpublic static Package Open(java.lang.String path) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, SerializationException, ObjectDisposedException, ArrayTypeMismatchException, InvalidDataException, KeyNotFoundException, FormatException, IOException, XmlException, FileFormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionSerializationExceptionObjectDisposedExceptionArrayTypeMismatchExceptionInvalidDataExceptionKeyNotFoundExceptionFormatExceptionIOExceptionXmlExceptionFileFormatExceptionpublic static Package Open(java.lang.String path, FileMode packageMode) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, SerializationException, ObjectDisposedException, ArrayTypeMismatchException, InvalidDataException, KeyNotFoundException, FormatException, IOException, XmlException, FileFormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionSerializationExceptionObjectDisposedExceptionArrayTypeMismatchExceptionInvalidDataExceptionKeyNotFoundExceptionFormatExceptionIOExceptionXmlExceptionFileFormatExceptionpublic static Package Open(java.lang.String path, FileMode packageMode, FileAccess packageAccess) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, CultureNotFoundException, SerializationException, ObjectDisposedException, ArrayTypeMismatchException, InvalidDataException, KeyNotFoundException, FormatException, IOException, XmlException, FileFormatException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionCultureNotFoundExceptionSerializationExceptionObjectDisposedExceptionArrayTypeMismatchExceptionInvalidDataExceptionKeyNotFoundExceptionFormatExceptionIOExceptionXmlExceptionFileFormatExceptionpublic static Package Open(java.lang.String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, CultureNotFoundException, SerializationException, IOException, InvalidDataException, KeyNotFoundException, FormatException, XmlException, FileFormatException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionSerializationExceptionIOExceptionInvalidDataExceptionKeyNotFoundExceptionFormatExceptionXmlExceptionFileFormatExceptionpublic boolean PartExists(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, OutOfMemoryException, ExternalException, UnreachableException, UriFormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionOutOfMemoryExceptionExternalExceptionUnreachableExceptionUriFormatExceptionpublic boolean RelationshipExists(java.lang.String id)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
IOException,
IndexOutOfRangeException,
InvalidOperationException,
XmlException,
OutOfMemoryException,
FileFormatException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionInvalidOperationExceptionXmlExceptionOutOfMemoryExceptionFileFormatExceptionNotSupportedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class NetObject