public class UTF16Reader extends InputStreamReader
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
static String |
ENCODING |
| Constructor and Description |
|---|
UTF16Reader(File file) |
UTF16Reader(InputStream in) |
UTF16Reader(String filename) |
| Modifier and Type | Method and Description |
|---|---|
String |
readString()
Read the entire contents of the file and return in a string.
|
close, getEncoding, read, read, readypublic static final String ENCODING
public static final int BUFFER_SIZE
public UTF16Reader(InputStream in) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic UTF16Reader(String filename) throws FileNotFoundException, UnsupportedEncodingException
public UTF16Reader(File file) throws FileNotFoundException, UnsupportedEncodingException
public String readString() throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2016 The American National Corpus. All rights reserved.