public class DecodingWriteableByteChannel extends Object implements WritableByteChannel
| Constructor and Description |
|---|
DecodingWriteableByteChannel(Charset charset)
Creates a new DecodingWriteableByteChannel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isOpen() |
StringBuilder |
toStringBuilder()
Returns the decoded String.
|
int |
write(ByteBuffer src) |
public DecodingWriteableByteChannel(Charset charset)
charset - the character set used to encode the textpublic int write(ByteBuffer src) throws IOException
write in interface WritableByteChannelIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionpublic StringBuilder toStringBuilder()
Copyright © 2011. All Rights Reserved.