FileDocCategorySizeDatePackage
AutoDetector.javaAPI DocAndroid 1.5 API1504Wed May 06 22:41:42 BST 2009org.ccil.cowan.tagsoup

AutoDetector

public interface AutoDetector
Classes which accept an InputStream and provide a Reader which figures out the encoding of the InputStream and reads characters from it should conform to this interface.
see
java.io.InputStream
see
java.io.Reader

Fields Summary
Constructors Summary
Methods Summary
public java.io.ReaderautoDetectingReader(java.io.InputStream i)
Given an InputStream, return a suitable Reader that understands the presumed character encoding of that InputStream. If bytes are consumed from the InputStream in the process, they must be pushed back onto the InputStream so that they can be reinterpreted as characters.

param
i The InputStream
return
A Reader that reads from the InputStream