public class CompressionNone extends BaseCompression
Compression.Type| Modifier and Type | Field and Description |
|---|---|
private int |
level |
private Compression.Type |
type |
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
CompressionNone() |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(Buffer buffer)
Compress the given buffer in place.
|
void |
init(Compression.Type type,
int level)
Initialize this object to either compress or uncompress data.
|
boolean |
isCompressionExecuted() |
boolean |
isDelayed()
Delayed compression is an Open-SSH specific feature which informs both the client and server to not compress data
before the session has been authenticated.
|
java.lang.String |
toString() |
void |
uncompress(Buffer from,
Buffer to)
Uncompress the data in a buffer into another buffer.
|
getNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindByName, getNameList, getNames, ofName, removeByNameprivate Compression.Type type
private int level
public void init(Compression.Type type, int level)
Compressioncompress or uncompress. Once the object has been initialized, only one of
compress or uncompress methods can be called.type - compression typelevel - compression levelpublic boolean isCompressionExecuted()
isCompressionExecuted in interface CompressionInformationisCompressionExecuted in class BaseCompressiontrue if there is any compression executed by this "compressor" - special case for
'none'public void compress(Buffer buffer) throws java.io.IOException
Compressionbuffer - the buffer containing the data to compressjava.io.IOException - if an error occurspublic void uncompress(Buffer from, Buffer to) throws java.io.IOException
Compressionfrom - the buffer containing the data to uncompressto - the buffer receiving the uncompressed datajava.io.IOException - if an error occurspublic boolean isDelayed()
CompressionInformationpublic java.lang.String toString()
toString in class BaseCompression