|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.security.ssl.CompressionMethod
public abstract class CompressionMethod
Defines the compression methods supported in SSL Version 3.0. SSL v3.0 does not define any standard compression methods but allows user defined compression methods.
Field Summary | |
---|---|
static CompressionMethod |
NULL_COMPRESSION
|
Constructor Summary | |
---|---|
protected |
CompressionMethod(java.lang.String name,
int id)
This constructor is called from a class which implements a specific compression method. |
Method Summary | |
---|---|
protected abstract int |
compress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
Performs the compress operation. |
protected abstract int |
decompress(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff)
Performs the decompress operation. |
boolean |
equals(java.lang.Object o)
Compares this CompressionMethod with the given object. |
static CompressionMethod[] |
getDefault()
Returns an array with the default compression methods. |
int |
getID()
Returns the identifier of this compression method. |
java.lang.String |
getName()
Returns the name of this compression method. |
int |
hashCode()
Gets a hash code for this object. |
java.lang.String |
toString()
Gets a String representation of this CompressionMethod. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final CompressionMethod NULL_COMPRESSION
Constructor Detail |
---|
protected CompressionMethod(java.lang.String name, int id)
Method Detail |
---|
public final java.lang.String getName()
public final int getID()
protected abstract int compress(byte[] in, int inOff, int inLen, byte[] out, int outOff) throws java.util.zip.DataFormatException
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
java.util.zip.DataFormatException
protected abstract int decompress(byte[] in, int inOff, int inLen, byte[] out, int outOff) throws java.util.zip.DataFormatException
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
java.util.zip.DataFormatException
public static CompressionMethod[] getDefault()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to be compared
true
if the two objects are equal, false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |