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, reset
public FileToStringSampleStream(ObjectStream<File> samples, Charset encoding)
samples
- The ObjectStream
containing the files.encoding
- The Charset
encoding of the files.public String read() throws IOException
ObjectStream
IOException
- if there is an error during readingCopyright © 2021 The Apache Software Foundation. All rights reserved.