|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.at4j.zip.comp.AbstractUnsupportedCompressionMethod
public abstract class AbstractUnsupportedCompressionMethod
This class may be inherited by unsupported compression method.
| Constructor Summary | |
|---|---|
AbstractUnsupportedCompressionMethod()
|
|
| Method Summary | |
|---|---|
InputStream |
createInputStream(InputStream is,
long compressedSize,
long uncompressedSize)
This method always throws an UnsupportedCompressionMethodException. |
OutputStream |
createOutputStream(OutputStream os)
This method always throws an UnsupportedCompressionMethodException. |
RandomAccess |
createRandomAccess(RandomAccess ra,
long compressedSize,
long uncompressedSize)
This method always throws an UnsupportedCompressionMethodException. |
ZipEntryCompressionMethod |
createWithCompressionLevel(CompressionLevel level)
Create a new ZipEntryCompressionMethod object that will have the
supplied compression level. |
boolean |
isRandomAccessSupported()
This method always returns false |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.at4j.zip.comp.ZipEntryCompressionMethod |
|---|
getCode, getName, getVersionNeededToExtract |
| Constructor Detail |
|---|
public AbstractUnsupportedCompressionMethod()
| Method Detail |
|---|
public final InputStream createInputStream(InputStream is,
long compressedSize,
long uncompressedSize)
throws UnsupportedCompressionMethodException
UnsupportedCompressionMethodException.
createInputStream in interface ZipEntryCompressionMethodis - An open InputStream on the compressed file data.compressedSize - The total size of the compressed data.uncompressedSize - The total size of the uncompressed data.
InputStream containing uncompressed file data.
UnsupportedCompressionMethodException - Always.
public final OutputStream createOutputStream(OutputStream os)
throws UnsupportedCompressionMethodException
UnsupportedCompressionMethodException.
createOutputStream in interface ZipEntryCompressionMethodos - The wrapped output stream.
UnsupportedCompressionMethodException - Always.
public final RandomAccess createRandomAccess(RandomAccess ra,
long compressedSize,
long uncompressedSize)
throws UnsupportedCompressionMethodException
UnsupportedCompressionMethodException.
createRandomAccess in interface ZipEntryCompressionMethodra - An open random access object on the file entry's data.compressedSize - The total size of the compressed data.uncompressedSize - The total size of the uncompressed data.
RandomAccess that can be used to read
uncompressed data.
UnsupportedCompressionMethodException - Always.public final boolean isRandomAccessSupported()
false
isRandomAccessSupported in interface ZipEntryCompressionMethodfalse, always.public final ZipEntryCompressionMethod createWithCompressionLevel(CompressionLevel level)
ZipEntryCompressionMethodZipEntryCompressionMethod object that will have the
supplied compression level.
The reason for this method is that it makes it easier to set a custom compression level for a compression method, without having to create a new compression method object from scratch manually.
createWithCompressionLevel in interface ZipEntryCompressionMethodlevel - The compression level.
this
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||