Class FileCharsetDetector

  • All Implemented Interfaces:
    org.codehaus.plexus.logging.LogEnabled

    public class FileCharsetDetector
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String charset  
      private boolean found  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCharset()  
      boolean isFound()  
      • Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled

        enableLogging, getLogger, setupLogger, setupLogger, setupLogger
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • charset

        private java.lang.String charset
      • found

        private boolean found
    • Constructor Detail

      • FileCharsetDetector

        public FileCharsetDetector​(java.io.File detectedFile)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
      • FileCharsetDetector

        public FileCharsetDetector​(java.io.InputStream detectedStream)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
    • Method Detail

      • getCharset

        public java.lang.String getCharset()
      • isFound

        public boolean isFound()