Class FileCharsetDetector

java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.archetype.common.util.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
     
    private boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FileCharsetDetector(java.io.File detectedFile)
     
    FileCharsetDetector(java.io.InputStream detectedStream)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.String
     
    boolean
     

    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 Details

    • charset

      private java.lang.String charset
    • found

      private boolean found
  • Constructor Details

    • 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 Details

    • getCharset

      public java.lang.String getCharset()
    • isFound

      public boolean isFound()