@Deprecated public abstract class FormatBase extends Object implements com.aspose.ms.System.IDisposable, Closeable
Represents base abstraction for supported file formats.
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Deprecated.
Removes writable metadata properties associated with the file.
|
void |
close()
Deprecated.
|
void |
dispose()
Deprecated.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protected void |
dispose(boolean disposing)
Deprecated.
Releases unmanaged and optionally managed resources.
|
Metadata[] |
getMetadata()
Deprecated.
Gets an array of metadata packages extracted from the file.
|
String |
getMIMEType()
Deprecated.
Gets the MIME type of the loaded file.
|
abstract int |
getType()
Deprecated.
Gets the type of the loaded file.
|
MetadataProperty |
readByMetadataKey(MetadataKey key)
Deprecated.
|
void |
save()
Deprecated.
Saves all changes made in the loaded file.
|
void |
save(OutputStream outputStream)
Deprecated.
Saves the file content into a stream.
|
void |
save(String outputPath)
Deprecated.
Saves the file content to the specified file.
|
public abstract int getType()
Gets the type of the loaded file.
public final String getMIMEType()
Gets the MIME type of the loaded file.
public void cleanMetadata()
Removes writable metadata properties associated with the file.
public final Metadata[] getMetadata()
Gets an array of metadata packages extracted from the file.
public void save(OutputStream outputStream)
Saves the file content into a stream.
outputStream
- The output stream.public final void save(String outputPath)
Saves the file content to the specified file.
outputPath
- The output path.public final void save()
Saves all changes made in the loaded file.
public final void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
public MetadataProperty readByMetadataKey(MetadataKey key)
protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.public final void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2020. All rights reserved.