iaik.security.ssl
Class NullCompression
java.lang.Object
iaik.security.ssl.CompressionMethod
iaik.security.ssl.NullCompression
- All Implemented Interfaces:
- java.io.Serializable
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
compress
public int compress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
- Returns the data without modification.
- Specified by:
compress
in 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.
- Specified by:
decompress
in 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
iSaSiLk 6.0, (c) 2002 IAIK, (c) 2003 - 2015 SIC