java.lang.Object
org.gjt.sp.jedit.io.AutoDetection.Result
- Enclosing class:
- AutoDetection
An utility class to hold the result of some auto detections.
-
Constructor Summary
ConstructorDescriptionResult
(InputStream in) Do some auto detection for a stream and hold the result in this instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the auto detected encoding.Returns the stream which can be read the contents of the original stream.boolean
Returns true if the stream is gzipped.
-
Constructor Details
-
Result
Do some auto detection for a stream and hold the result in this instance.- Parameters:
in
- the stream- Throws:
IOException
-
-
Method Details
-
getRewindedStream
Returns the stream which can be read the contents of the original stream. Some bytes ware read from original stream for auto detections. But they are rewinded at this method.- Throws:
IOException
-
streamIsGzipped
public boolean streamIsGzipped()Returns true if the stream is gzipped. -
getDetectedEncoding
Returns the auto detected encoding. Returns null if no encoding was detected.
-