org.apache.maven.archetype.common.util
Class FileCharsetDetector

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.archetype.common.util.FileCharsetDetector
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled

public class FileCharsetDetector
extends org.codehaus.plexus.logging.AbstractLogEnabled

Author:
rafale

Constructor Summary
FileCharsetDetector(java.io.File detectedFile)
           
FileCharsetDetector(java.io.InputStream detectedStream)
           
 
Method Summary
 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
 

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()


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.