Class BaseCompression
- java.lang.Object
-
- org.apache.sshd.common.compression.BaseCompression
-
- All Implemented Interfaces:
Compression
,CompressionInformation
,NamedResource
- Direct Known Subclasses:
CompressionNone
,CompressionZlib
public abstract class BaseCompression extends java.lang.Object implements Compression
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.compression.Compression
Compression.Type
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseCompression(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
boolean
isCompressionExecuted()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.compression.Compression
compress, init, uncompress
-
Methods inherited from interface org.apache.sshd.common.compression.CompressionInformation
isDelayed
-
-
-
-
Method Detail
-
getName
public final java.lang.String getName()
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
isCompressionExecuted
public boolean isCompressionExecuted()
- Specified by:
isCompressionExecuted
in interfaceCompressionInformation
- Returns:
true
if there is any compression executed by this "compressor" - special case for 'none'
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-