Class UnicodeInputStream

java.lang.Object
java.io.InputStream
org.apache.velocity.io.UnicodeInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class UnicodeInputStream extends InputStream
This is an input stream that is unicode BOM aware. This allows you to e.g. read Windows Notepad Unicode files as Velocity templates. It allows you to check the actual encoding of a file by calling getEncodingFromStream() on the input stream reader. This class is not thread safe! When more than one thread wants to use an instance of UnicodeInputStream, the caller must provide synchronization.
Since:
1.5
Version:
$Id$