Class BASE64EncodingAlgorithm
java.lang.Object
com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithm
com.sun.xml.fastinfoset.algorithm.BASE64EncodingAlgorithm
- All Implemented Interfaces:
EncodingAlgorithm
-
Nested Class Summary
Nested classes/interfaces inherited from class BuiltInEncodingAlgorithm
BuiltInEncodingAlgorithm.WordListener -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int[](package private) static final char[]Fields inherited from class BuiltInEncodingAlgorithm
SPACE_PATTERN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectconvertFromCharacters(char[] ch, int start, int length) final voidconvertToCharacters(byte[] data, int offset, int length, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version.final voidconvertToCharacters(byte[] data, int offset, int length, StringBuilder s) final voidconvertToCharacters(Object data, StringBuilder s) final ObjectdecodeFromBytes(byte[] b, int start, int length) final Objectfinal voidencodeToBytes(Object array, int astart, int alength, byte[] b, int start) voidencodeToOutputStream(Object data, OutputStream s) intgetOctetLengthFromPrimitiveLength(int primitiveLength) final intgetPrimtiveLengthFromOctetLength(int octetLength) Methods inherited from class BuiltInEncodingAlgorithm
matchWhiteSpaceDelimnatedWords, removeWhitespaceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EncodingAlgorithm
convertToCharacters
-
Field Details
-
encodeBase64
static final char[] encodeBase64 -
decodeBase64
static final int[] decodeBase64
-
-
Constructor Details
-
BASE64EncodingAlgorithm
public BASE64EncodingAlgorithm()
-
-
Method Details
-
decodeFromBytes
public final Object decodeFromBytes(byte[] b, int start, int length) throws EncodingAlgorithmException - Throws:
EncodingAlgorithmException
-
decodeFromInputStream
- Throws:
IOException
-
encodeToOutputStream
- Throws:
IOException
-
convertFromCharacters
-
convertToCharacters
-
getPrimtiveLengthFromOctetLength
public final int getPrimtiveLengthFromOctetLength(int octetLength) throws EncodingAlgorithmException - Specified by:
getPrimtiveLengthFromOctetLengthin classBuiltInEncodingAlgorithm- Throws:
EncodingAlgorithmException
-
getOctetLengthFromPrimitiveLength
public int getOctetLengthFromPrimitiveLength(int primitiveLength) - Specified by:
getOctetLengthFromPrimitiveLengthin classBuiltInEncodingAlgorithm
-
encodeToBytes
- Specified by:
encodeToBytesin classBuiltInEncodingAlgorithm
-
convertToCharacters
-
convertToCharacters
@Deprecated(since="2.1.1", forRemoval=true) public final void convertToCharacters(byte[] data, int offset, int length, StringBuffer s) Deprecated, for removal: This API element is subject to removal in a future version.UseconvertToCharacters(byte[], int, int, StringBuilder)instead.
-
convertToCharacters(byte[], int, int, StringBuilder)instead.