org.apache.any23.mime.purifier
Class WhiteSpacesPurifier
java.lang.Object
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 )
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhiteSpacesPurifier
public WhiteSpacesPurifier()
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.