Interface InMemoryStream<T>

Type Parameters:
T - type of elements of the iterator
All Superinterfaces:
AutoCloseable, Closeable, CloseableIterator<T>, CloseableIteratorWithoutException<T>, Iterator<T>, Stream<T>, Writer<T>
All Known Implementing Classes:
ArrayBlockingStream, QueueStream

public interface InMemoryStream<T> extends Stream<T>, CloseableIteratorWithoutException<T>
Represents an in-memory stream that can be written to and read from without checked exceptions.
Author:
Clément Sipieter (INRIA) <clement@6pi.fr>
  • Method Details

    • write

      void write(T object)
      Description copied from interface: Writer
      Writes a single object.
      Specified by:
      write in interface Writer<T>
      Parameters:
      object - the object to write
    • write

      void write(Iterator<T> objects)
      Description copied from interface: Writer
      Writes all objects provided by the iterator.
      Specified by:
      write in interface Writer<T>
      Parameters:
      objects - the objects to write