public class ReadBuffer
extends java.lang.Object
| Constructor and Description |
|---|
ReadBuffer()
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Retrieves the read buffer.
|
java.lang.String |
getCharset()
Retrieves the determined charset if the contents of the buffer is
plain text.
|
java.io.InputStream |
getInputStream()
Obtain an input stream for the buffer.
|
boolean |
isAscii()
Checks if the contents of the read buffer was plain text.
|
void |
read(java.io.InputStream input)
Reads a
String from the given InputStream. |
java.lang.String |
toString() |
public void read(java.io.InputStream input)
throws java.io.IOException
String from the given InputStream.input - the input stream to use.java.io.IOException - Error reading.public boolean isAscii()
true if the contents was plain text.public java.lang.String getCharset()
null if no charset was detected.public byte[] getBytes()
public java.io.InputStream getInputStream()
public java.lang.String toString()
toString in class java.lang.Object