org.apache.ws.commons.util
Class Base64.SAXEncoder
- Base64
public static class Base64.SAXEncoder
An
Base64.Encoder
, which is writing to a SAX content handler.
This is typically used for embedding a base64 stream into an
XML document.
SAXEncoder(char[] pBuffer, int pWrapSize, String pSep, ContentHandler pHandler) - Creates a new instance.
|
protected void | writeBuffer(char[] pChars, int pOffset, int pLen) - Writes to the content handler.
|
SAXEncoder
public SAXEncoder(char[] pBuffer,
int pWrapSize,
String pSep,
ContentHandler pHandler)
Creates a new instance.
pBuffer
- The encoders buffer.pWrapSize
- A nonzero value indicates, that a line
wrap should be performed after the given number of
characters. The value must be a multiple of 4. Zero
indicates, that no line wrap should be performed.pSep
- The eol sequence being used to terminate
a line in case of line wraps. May be null, in which
case the default value Base64.LINE_SEPARATOR
is being used.pHandler
- The target handler.
writeBuffer
protected void writeBuffer(char[] pChars,
int pOffset,
int pLen)
throws IOException
Writes to the content handler.
- writeBuffer in interface Base64.Encoder