|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectschemajic.encoder.DefiniteFormEncoder
public class DefiniteFormEncoder
Encodes definite form short and long lengths.
TODO: Make this class a Singleton.
| Constructor Summary | |
|---|---|
DefiniteFormEncoder()
|
|
| Method Summary | |
|---|---|
int |
calcLengthOfLength(int length)
Calculates the length of the length of the value (the length of the length octets) from a provided integer value. |
void |
encode(int length,
java.io.OutputStream out)
Defines a method to encode length octets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefiniteFormEncoder()
| Method Detail |
|---|
public void encode(int length,
java.io.OutputStream out)
throws EncodingException
LengthEncoder
encode in interface LengthEncoderlength - length of the length octetsout - a target encoding output stream
EncodingExceptionpublic int calcLengthOfLength(int length)
calcLengthOfLength in interface LengthEncoderlength - length of the length octets
|
XCMS Toolkit | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||