org.axiondb.util

Class Utf8InputStreamConverter

public class Utf8InputStreamConverter extends InputStream

Author: mdelagrange

Constructor Summary
Utf8InputStreamConverter(InputStream utf8Stream, String targetEncoding)
Currently only supports "US-ASCII"
Method Summary
intread()
Returns a byte encoded as ASCII.

Constructor Detail

Utf8InputStreamConverter

public Utf8InputStreamConverter(InputStream utf8Stream, String targetEncoding)
Currently only supports "US-ASCII"

Parameters: targetEncoding "US-ASCII"

Throws: UnsupportedEncodingException

Method Detail

read

public int read()
Returns a byte encoded as ASCII. If non-ASCII characters are encountered in the underlying UTF-8 stream, an IOException is thrown.

See Also: java.io.InputStream#read()