public class FileToStringSampleStream extends FilterObjectStream<File,String>
| Constructor and Description |
|---|
FileToStringSampleStream(ObjectStream<File> samples,
Charset encoding)
Creates a new file-to-string sample stream.
|
| Modifier and Type | Method and Description |
|---|---|
String |
read()
Returns the next object.
|
close, resetpublic FileToStringSampleStream(ObjectStream<File> samples, Charset encoding)
samples - The ObjectStream containing the files.encoding - The Charset encoding of the files.public String read() throws IOException
ObjectStreamIOException - if there is an error during readingCopyright © 2017 The Apache Software Foundation. All rights reserved.