Package system.io.packaging
Class Package
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.packaging.Package
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected,IDisposable
- Direct Known Subclasses:
ZipPackage
public class Package extends NetObject implements IDisposable, java.lang.AutoCloseable
The base .NET class managing System.IO.Packaging.Package, System.IO.Packaging, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..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
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.IO.Packaging, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.IO.Packagingstatic java.lang.StringclassNameQualified class name: System.IO.Packaging.Packagestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Packagecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPackage, a cast assert is made to check if types are compatible.voidclose()voidClose()PackagePartCreatePart(Uri partUri, java.lang.String contentType)PackagePartCreatePart(Uri partUri, java.lang.String contentType, CompressionOption compressionOption)PackageRelationshipCreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType)PackageRelationshipCreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType, java.lang.String id)voidDeletePart(Uri partUri)voidDeleteRelationship(java.lang.String id)voidFlush()FileAccessgetFileOpenAccess()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypePackagePropertiesgetPackageProperties()PackagePartGetPart(Uri partUri)PackagePartCollectionGetParts()PackageRelationshipGetRelationship(java.lang.String id)PackageRelationshipCollectionGetRelationships()PackageRelationshipCollectionGetRelationshipsByType(java.lang.String relationshipType)static PackageOpen(java.lang.String path)static PackageOpen(java.lang.String path, FileMode packageMode)static PackageOpen(java.lang.String path, FileMode packageMode, FileAccess packageAccess)static PackageOpen(java.lang.String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare)static PackageOpen(Stream stream)static PackageOpen(Stream stream, FileMode packageMode)static PackageOpen(Stream stream, FileMode packageMode, FileAccess packageAccess)booleanPartExists(Uri partUri)booleanRelationshipExists(java.lang.String id)voidsetJCOInstance(JCObject instance)-
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: System.IO.Packaging, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IO.Packaging- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Packaging.Package- See Also:
- Constant Field Values
-
-
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 classNetObject- 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 classNetObject- 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 classNetObject- 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 classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIDisposable- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Package cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPackage, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Packageinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
PartExists
public boolean PartExists(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, UriFormatException
-
RelationshipExists
public boolean RelationshipExists(java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, InvalidOperationException, XmlException, OutOfMemoryException, FileFormatException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionInvalidOperationExceptionXmlExceptionOutOfMemoryExceptionFileFormatExceptionNotSupportedException
-
Open
public static Package Open(Stream stream, FileMode packageMode, FileAccess packageAccess) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, FileFormatException, IOException, InvalidDataException, OutOfMemoryException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionFileFormatExceptionIOExceptionInvalidDataExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
Open
public static Package Open(Stream stream, FileMode packageMode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FileFormatException, IOException, InvalidDataException, OutOfMemoryException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFileFormatExceptionIOExceptionInvalidDataExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
Open
public static Package Open(Stream stream) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FileFormatException, IOException, InvalidDataException, OutOfMemoryException, XmlException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionFileFormatExceptionIOExceptionInvalidDataExceptionOutOfMemoryExceptionXmlExceptionKeyNotFoundException
-
Open
public static Package Open(java.lang.String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, IndexOutOfRangeException, SerializationException, IOException, InvalidDataException, XmlException, FileFormatException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSerializationExceptionIOExceptionInvalidDataExceptionXmlExceptionFileFormatExceptionKeyNotFoundException
-
Open
public static Package Open(java.lang.String path, FileMode packageMode, FileAccess packageAccess) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, SerializationException, IOException, InvalidDataException, XmlException, FileFormatException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionSerializationExceptionIOExceptionInvalidDataExceptionXmlExceptionFileFormatExceptionKeyNotFoundException
-
Open
public static Package Open(java.lang.String path, FileMode packageMode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, SerializationException, IOException, InvalidDataException, XmlException, FileFormatException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionSerializationExceptionIOExceptionInvalidDataExceptionXmlExceptionFileFormatExceptionKeyNotFoundException
-
Open
public static Package Open(java.lang.String path) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, SerializationException, IOException, InvalidDataException, XmlException, FileFormatException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionSerializationExceptionIOExceptionInvalidDataExceptionXmlExceptionFileFormatExceptionKeyNotFoundException
-
CreatePart
public PackagePart CreatePart(Uri partUri, java.lang.String contentType, CompressionOption compressionOption) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, UriFormatException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
CreatePart
public PackagePart CreatePart(Uri partUri, java.lang.String contentType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
GetPart
public PackagePart GetPart(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, InvalidOperationException, OutOfMemoryException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
GetParts
public PackagePartCollection GetParts() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, FileFormatException, RankException, ArrayTypeMismatchException, OutOfMemoryException, NotSupportedException, KeyNotFoundException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionRankExceptionArrayTypeMismatchExceptionOutOfMemoryExceptionNotSupportedExceptionKeyNotFoundException
-
CreateRelationship
public PackageRelationship CreateRelationship(Uri targetUri, TargetMode targetMode, java.lang.String relationshipType, java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, OutOfMemoryException, FileFormatException, XmlException, NotSupportedException, OverflowException, InvalidCastException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionOutOfMemoryExceptionFileFormatExceptionXmlExceptionNotSupportedExceptionOverflowExceptionInvalidCastException
-
CreateRelationship
public 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
-
GetRelationship
public PackageRelationship GetRelationship(java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, InvalidOperationException, XmlException, OutOfMemoryException, FileFormatException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionInvalidOperationExceptionXmlExceptionOutOfMemoryExceptionFileFormatExceptionNotSupportedException
-
GetRelationships
public PackageRelationshipCollection GetRelationships() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, InvalidOperationException, OutOfMemoryException, FileFormatException, XmlException, NotSupportedException
-
GetRelationshipsByType
public PackageRelationshipCollection GetRelationshipsByType(java.lang.String relationshipType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, OutOfMemoryException, FileFormatException, XmlException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionFileFormatExceptionXmlExceptionNotSupportedException
-
Close
public void Close() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
DeletePart
public void DeletePart(Uri partUri) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, UriFormatException, KeyNotFoundException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionUriFormatExceptionKeyNotFoundExceptionRankExceptionIndexOutOfRangeExceptionArrayTypeMismatchException
-
DeleteRelationship
public void DeleteRelationship(java.lang.String id) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, FormatException, XmlException, OutOfMemoryException, FileFormatException, NotSupportedException, OverflowException, InvalidCastException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFormatExceptionXmlExceptionOutOfMemoryExceptionFileFormatExceptionNotSupportedExceptionOverflowExceptionInvalidCastException
-
Flush
public void Flush() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, FileFormatException, OutOfMemoryException, FormatException, XmlException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, NotSupportedException, SecurityException, OverflowException, KeyNotFoundException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionFileFormatExceptionOutOfMemoryExceptionFormatExceptionXmlExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionSecurityExceptionOverflowExceptionKeyNotFoundException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
getFileOpenAccess
public FileAccess getFileOpenAccess() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
getPackageProperties
public PackageProperties getPackageProperties() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, IOException, IndexOutOfRangeException, FileFormatException, OutOfMemoryException, XmlException, RankException, ArrayTypeMismatchException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionIOExceptionIndexOutOfRangeExceptionFileFormatExceptionOutOfMemoryExceptionXmlExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedException
-
-