|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gjt.sp.jedit.io.AutoDetection
public class AutoDetection
Some functions for auto detection of I/O stream properties.
Nested Class Summary | |
---|---|
static class |
AutoDetection.Result
An utility class to hold the result of some auto detections. |
Constructor Summary | |
---|---|
AutoDetection()
|
Method Summary | |
---|---|
static java.lang.String |
getDetectedEncoding(java.io.BufferedInputStream markedStream)
Returns an auto detected encoding from content of markedStream. |
static java.util.List<EncodingDetector> |
getEncodingDetectors()
Returns the user configured ordered list of encoding detectors. |
static java.io.BufferedInputStream |
getMarkedStream(java.io.InputStream in)
Returns a marked, rewindable stream. |
static boolean |
isGzipped(java.io.InputStream sample)
Returns wheather the stream is gzipped. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutoDetection()
Method Detail |
---|
public static java.io.BufferedInputStream getMarkedStream(java.io.InputStream in)
public static boolean isGzipped(java.io.InputStream sample) throws java.io.IOException
java.io.IOException
public static java.util.List<EncodingDetector> getEncodingDetectors()
public static java.lang.String getDetectedEncoding(java.io.BufferedInputStream markedStream) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |