@Role public interface BinaryStringEncoder
Modifier and Type | Method and Description |
---|---|
byte[] |
decode(String input)
Decode input string to bytes, whitespace and line-feed are ignored.
|
String |
encode(byte[] input)
Encode input with this encoder and without any wrapping.
|
String |
encode(byte[] input,
int wrapAt)
Encode input with this encoder, wrapping line at a fixed length.
|
String |
encode(byte[] input,
int off,
int len)
Encode input with this encoder and without any wrapping.
|
String |
encode(byte[] input,
int off,
int len,
int wrapAt)
Encode input with this encoder, wrapping line at a fixed length.
|
FilterInputStream |
getDecoderInputStream(InputStream is)
Return a decoding input stream based on this encoder.
|
FilterOutputStream |
getEncoderOutputStream(OutputStream os)
Return a encoding output stream based on this encoder.
|
FilterOutputStream |
getEncoderOutputStream(OutputStream os,
int wrapAt)
Return a encoding output stream based on this encoder, wrapping lines at a fixed length.
|
FilterInputStream getDecoderInputStream(InputStream is)
is
- an input stream to filter.FilterOutputStream getEncoderOutputStream(OutputStream os)
os
- an output stream to filter.FilterOutputStream getEncoderOutputStream(OutputStream os, int wrapAt)
os
- an output stream to filter.wrapAt
- maximum length of a line.String encode(byte[] input) throws IOException
input
- a byte array.IOException
- on error.String encode(byte[] input, int wrapAt) throws IOException
input
- a byte array.wrapAt
- maximum length of a line.IOException
- on error.String encode(byte[] input, int off, int len) throws IOException
input
- a byte array.off
- offset to start with in the byte array.len
- to encode in the byte array.IOException
- on error.String encode(byte[] input, int off, int len, int wrapAt) throws IOException
input
- a byte array.off
- offset to start with in the byte array.len
- to encode in the byte array.wrapAt
- maximum length of a line.IOException
- on error.byte[] decode(String input) throws IOException
input
- a string to decode.IOException
- on error.Copyright © 2004–2021 XWiki. All rights reserved.