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
StringInput
readLine
in interface StringInput
java.io.IOException
- IOExceptionpublic int read() throws java.io.IOException
StringInput
read
in interface StringInput
java.io.IOException
- If an I/O error occurspublic void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException