Class ArticleInputStream

java.lang.Object
java.io.InputStream
org.sonews.util.io.ArticleInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ArticleInputStream extends InputStream
Capsulates an ArticleImpl to provide a raw InputStream.
Since:
sonews/0.5.0
Author:
Christian Lins
  • Constructor Details

  • Method Details

    • read

      public int read()
      This method reads one byte from the stream. The pos counter is advanced to the next byte to be read. The byte read is returned as an int in the range of 0-255. If the stream position is already at the end of the buffer, no byte is read and a -1 is returned in order to indicate the end of the stream.
      Specified by:
      read in class InputStream
      Returns:
      The byte read, or -1 if end of stream