public class AutoDetection
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | AutoDetection.ResultAn utility class to hold the result of some auto detections. | 
| Constructor and Description | 
|---|
| AutoDetection() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public static java.io.BufferedInputStream getMarkedStream(java.io.InputStream in)
public static boolean isGzipped(java.io.InputStream sample)
                         throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<EncodingDetector> getEncodingDetectors()
public static java.lang.String getDetectedEncoding(java.io.BufferedInputStream markedStream)
                                            throws java.io.IOException
java.io.IOException