public static class AutoDetection.Result
extends java.lang.Object
Constructor | Description |
---|---|
Result(java.io.InputStream in) |
Do some auto detection for a stream and hold the
result in this instance.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getDetectedEncoding() |
Returns the auto detected encoding.
|
java.io.BufferedInputStream |
getRewindedStream() |
Returns the stream which can be read the contents of
the original stream.
|
boolean |
streamIsGzipped() |
Returns true if the stream is gzipped.
|
public Result(java.io.InputStream in) throws java.io.IOException
in
- the streamjava.io.IOException
public java.io.BufferedInputStream getRewindedStream() throws java.io.IOException
java.io.IOException
public boolean streamIsGzipped()
public java.lang.String getDetectedEncoding()