public class URLDecoder extends Object implements Appendable, Flushable, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
bb |
protected CharBuffer |
cb |
protected CharsetDecoder |
cd |
protected Charset |
charset |
protected static int |
DEFAULT_BUFFER_SIZE |
protected Appendable |
out |
protected CharBuffer |
singleCharBuffer |
| Constructor and Description |
|---|
URLDecoder(Appendable out)
|
URLDecoder(Appendable out,
int bufferSize)
Decodes to the specified
Appendable
with the specified bufferSize,
using URLCodec.UTF_8. |
URLDecoder(Appendable out,
int bufferSize,
Charset charset)
Decodes to the specified
Appendable
with the specified bufferSize and charset. |
| Modifier and Type | Method and Description |
|---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence in) |
Appendable |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
protected void |
flush(boolean endOfInput) |
protected static final int DEFAULT_BUFFER_SIZE
protected final Appendable out
protected final Charset charset
protected final CharBuffer singleCharBuffer
protected final CharsetDecoder cd
protected final ByteBuffer bb
protected final CharBuffer cb
public URLDecoder(Appendable out)
Appendable,
using DEFAULT_BUFFER_SIZE
and URLCodec.UTF_8.
Convenience method for URLDecoder(Appendable, int, Charset).public URLDecoder(Appendable out, int bufferSize)
Appendable
with the specified bufferSize,
using URLCodec.UTF_8.
Convenience method for URLDecoder(Appendable, int, Charset).public URLDecoder(Appendable out, int bufferSize, Charset charset)
Appendable
with the specified bufferSize and charset.public Appendable append(CharSequence in) throws IOException
append in interface AppendableIOExceptionpublic Appendable append(char c) throws IOException
append in interface AppendableIOExceptionpublic Appendable append(CharSequence csq, int start, int end) throws IOException
append in interface AppendableIOExceptionprotected void flush(boolean endOfInput)
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface FlushableIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.