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

Fields inherited from class iaik.security.ssl.CompressionMethod
NULL_COMPRESSION
 
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 iaik.security.ssl.CompressionMethod
getDefault, getID, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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 processed
inOff - the offset indicating the start position within the in byte array
inLen - the number of bytes to be processed
out - the byte array for holding the result
outOff - 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 processed
inOff - the offset indicating the start position within the in byte array
inLen - the number of bytes to be processed
out - the byte array for holding the result
outOff - the offset indicating the start position within the out byte array
Returns:
the number of bytes that are stored in the out byte array