Package org.jhighfun.util.stream

Examples of org.jhighfun.util.stream.InputStreamIterator


  public void transfer(OutputStream outputStream) {
    transfer(outputStream, 8192);
  }

  public TaskStream<Byte> asTaskStream() {
    return new TaskStream<Byte>(new InputStreamIterator(inputStream));
  }
View Full Code Here


  public static TaskStream<Character> characterTaskStream(Reader reader) {
    return new TaskStream<Character>(new ReaderStreamIterator(reader));
  }

  public static TaskStream<Byte> byteTaskStream(InputStream inputStream) {
    return new TaskStream<Byte>(new InputStreamIterator(inputStream));
  }
View Full Code Here

TOP

Related Classes of org.jhighfun.util.stream.InputStreamIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.