iaik.security.ssl
Class NullCompression
java.lang.Object
|
+--iaik.security.ssl.CompressionMethod
|
+--iaik.security.ssl.NullCompression
- public class NullCompression
- extends CompressionMethod
- implements java.io.Serializable
This class implements the default NULL compression method specified
in SSL version 3.0 (identity operation).
- See Also:
- Serialized Form
|
Method Summary |
int |
compress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
Returns the data without modification. |
int |
decompress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
Returns the data without modification. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
compress
public int compress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
- Returns the data without modification.
- Overrides:
- compress in class CompressionMethod
- Tags copied from class: CompressionMethod
- Parameters:
in - the byte array holding the data to be processedinOff - the offset indicating the start position within the in byte arrayinLen - the number of bytes to be processedout - the byte array for holding the resultoutOff - the offset indicating the start position within the out byte array- Returns:
- the number of bytes that are stored in the out byte array
decompress
public int decompress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
- Returns the data without modification.
- Overrides:
- decompress in class CompressionMethod
- Tags copied from class: CompressionMethod
- Parameters:
in - the byte array holding the data to be processedinOff - the offset indicating the start position within the in byte arrayinLen - the number of bytes to be processedout - the byte array for holding the resultoutOff - the offset indicating the start position within the out byte array- Returns:
- the number of bytes that are stored in the out byte array