public class URLEncodingInputStream extends FilterInputStream
FilterInputStream that URL-encodes arbitrary binary data from an input stream.
No transcoding is performed on the input. If your input is UTF-16LE, the output should be read as percent-encoded
UTF-16LE. If your input if UTF-8, the output will be percent-encoded UTF-8, and so on.
This object is thread-safe.in| Constructor and Description |
|---|
URLEncodingInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] buff) |
int |
read(byte[] buff,
int off,
int len) |
static Reader |
reader(InputStream in) |
available, close, mark, markSupported, reset, skippublic URLEncodingInputStream(InputStream in)
public static Reader reader(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buff)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buff,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionCopyright © 2018 The International Consortium of Investigative Journalists. All rights reserved.