org.apache.any23.mime.purifier
Class WhiteSpacesPurifier

java.lang.Object
  extended by org.apache.any23.mime.purifier.WhiteSpacesPurifier
All Implemented Interfaces:
Purifier

public class WhiteSpacesPurifier
extends Object
implements Purifier

Implementation of Purifier that removes all the eventual blank characters at the header of a file that might prevents its MIME Type detection.

Author:
Davide Palmisano ( dpalmisano@gmail.com )

Constructor Summary
WhiteSpacesPurifier()
           
 
Method Summary
 void purify(InputStream inputStream)
          Performs the purification of the provided resettable InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhiteSpacesPurifier

public WhiteSpacesPurifier()
Method Detail

purify

public void purify(InputStream inputStream)
            throws IOException
Performs the purification of the provided resettable InputStream.

Specified by:
purify in interface Purifier
Parameters:
inputStream - a resettable InputStream to be cleaned.
Throws:
IOException


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.