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.String
assemblyFullName
Fully assembly qualified name: System.IO.Packaging, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.IO.Packagingstatic java.lang.String
className
Qualified class name: System.IO.Packaging.Packagestatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Package
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPackage
, 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 namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class TypePackageProperties
getPackageProperties()
PackagePart
GetPart(Uri partUri)
PackagePartCollection
GetParts()
PackageRelationship
GetRelationship(java.lang.String id)
PackageRelationshipCollection
GetRelationships()
PackageRelationshipCollection
GetRelationshipsByType(java.lang.String relationshipType)
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)
static Package
Open(Stream stream)
static Package
Open(Stream stream, FileMode packageMode)
static Package
Open(Stream stream, FileMode packageMode, FileAccess packageAccess)
boolean
PartExists(Uri partUri)
boolean
RelationshipExists(java.lang.String id)
void
setJCOInstance(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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDisposable
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIDisposable
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIDisposable
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIDisposable
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDisposable
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Package cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPackage
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Package
instance- 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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
IndexOutOfRangeException
InvalidOperationException
XmlException
OutOfMemoryException
FileFormatException
NotSupportedException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
FileFormatException
IOException
InvalidDataException
OutOfMemoryException
XmlException
KeyNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FileFormatException
IOException
InvalidDataException
OutOfMemoryException
XmlException
KeyNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FileFormatException
IOException
InvalidDataException
OutOfMemoryException
XmlException
KeyNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
CultureNotFoundException
ObjectDisposedException
IndexOutOfRangeException
SerializationException
IOException
InvalidDataException
XmlException
FileFormatException
KeyNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
SerializationException
IOException
InvalidDataException
XmlException
FileFormatException
KeyNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
SerializationException
IOException
InvalidDataException
XmlException
FileFormatException
KeyNotFoundException
-
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.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
SerializationException
IOException
InvalidDataException
XmlException
FileFormatException
KeyNotFoundException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
IndexOutOfRangeException
FileFormatException
RankException
ArrayTypeMismatchException
OutOfMemoryException
NotSupportedException
KeyNotFoundException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
OutOfMemoryException
FileFormatException
XmlException
NotSupportedException
OverflowException
InvalidCastException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
IndexOutOfRangeException
InvalidOperationException
XmlException
OutOfMemoryException
FileFormatException
NotSupportedException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
IndexOutOfRangeException
OutOfMemoryException
FileFormatException
XmlException
NotSupportedException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
UriFormatException
KeyNotFoundException
RankException
IndexOutOfRangeException
ArrayTypeMismatchException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
IndexOutOfRangeException
FormatException
XmlException
OutOfMemoryException
FileFormatException
NotSupportedException
OverflowException
InvalidCastException
-
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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
FileFormatException
OutOfMemoryException
FormatException
XmlException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
NotSupportedException
SecurityException
OverflowException
KeyNotFoundException
-
close
public void close() throws java.lang.Exception
- Specified by:
close
in 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.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
CultureNotFoundException
ObjectDisposedException
IOException
IndexOutOfRangeException
FileFormatException
OutOfMemoryException
XmlException
RankException
ArrayTypeMismatchException
NotSupportedException
-
-