Class FileToStringSampleStream

    • Constructor Detail

      • FileToStringSampleStream

        public FileToStringSampleStream​(ObjectStream<File> samples,
                                        Charset encoding)
        Creates a new file-to-string sample stream.
        Parameters:
        samples - The ObjectStream containing the files.
        encoding - The Charset encoding of the files.
    • Method Detail

      • read

        public String read()
                    throws IOException
        Description copied from interface: ObjectStream
        Returns the next object. Calling this method repeatedly until it returns null will return each object from the underlying source exactly once.
        Returns:
        the next object or null to signal that the stream is exhausted
        Throws:
        IOException - if there is an error during reading