public class GzipFileStringInput extends java.lang.Object implements StringInput
| Constructor and Description |
|---|
GzipFileStringInput(java.io.File file,
java.lang.String charset)
Initialize.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read()
Reads a single character.
|
java.lang.String |
readLine()
Reads a single string.
|
public GzipFileStringInput(java.io.File file,
java.lang.String charset)
throws java.io.IOException
file - source formatcharset - file charsetjava.io.IOException - IOExceptionpublic java.lang.String readLine()
throws java.io.IOException
StringInputreadLine in interface StringInputjava.io.IOException - IOExceptionpublic int read()
throws java.io.IOException
StringInputread in interface StringInputjava.io.IOException - If an I/O error occurspublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException