public class SnappyFileStringOutput extends java.lang.Object implements StringOutput
| Constructor and Description |
|---|
SnappyFileStringOutput(java.io.File file,
java.lang.String charset)
Initialize.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush()
Flushes the stream.
|
void |
write(java.lang.String str)
Writes a string.
|
public SnappyFileStringOutput(java.io.File file,
java.lang.String charset)
throws java.io.FileNotFoundException
file - source formatcharset - file charsetjava.io.FileNotFoundException - FileNotFoundExceptionpublic void write(java.lang.String str)
throws java.io.IOException
StringOutputwrite in interface StringOutputstr - stringjava.io.IOException - If an I/O error occurspublic void flush()
throws java.io.IOException
StringOutputflush in interface StringOutputjava.io.IOException - If an I/O error occurspublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException