public abstract class BuiltInEncodingAlgorithm extends Object implements EncodingAlgorithm
Modifier and Type | Class and Description |
---|---|
static interface |
BuiltInEncodingAlgorithm.WordListener |
Modifier and Type | Field and Description |
---|---|
protected static Pattern |
SPACE_PATTERN |
Constructor and Description |
---|
BuiltInEncodingAlgorithm() |
Modifier and Type | Method and Description |
---|---|
abstract void |
encodeToBytes(Object array,
int astart,
int alength,
byte[] b,
int start) |
abstract int |
getOctetLengthFromPrimitiveLength(int primitiveLength) |
abstract int |
getPrimtiveLengthFromOctetLength(int octetLength) |
void |
matchWhiteSpaceDelimnatedWords(CharBuffer cb,
BuiltInEncodingAlgorithm.WordListener wl) |
StringBuffer |
removeWhitespace(char[] ch,
int start,
int length) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convertFromCharacters, convertToCharacters, decodeFromBytes, decodeFromInputStream, encodeToOutputStream
protected static final Pattern SPACE_PATTERN
public abstract int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException
EncodingAlgorithmException
public abstract int getOctetLengthFromPrimitiveLength(int primitiveLength)
public abstract void encodeToBytes(Object array, int astart, int alength, byte[] b, int start)
public void matchWhiteSpaceDelimnatedWords(CharBuffer cb, BuiltInEncodingAlgorithm.WordListener wl)
public StringBuffer removeWhitespace(char[] ch, int start, int length)
Copyright © 2018 Oracle Corpration. All rights reserved.