Klasse ArticleInputStream

java.lang.Object
java.io.InputStream
org.sonews.util.io.ArticleInputStream
Alle implementierten Schnittstellen:
Closeable, AutoCloseable

public class ArticleInputStream extends InputStream
Capsulates an ArticleImpl to provide a raw InputStream.
Seit:
sonews/0.5.0
Autor:
Christian Lins
  • Felddetails

    • buf

      private final byte[] buf
    • pos

      private int pos
  • Konstruktordetails

  • Methodendetails

    • 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.
      Angegeben von:
      read in Klasse InputStream
      Gibt zurück:
      The byte read, or -1 if end of stream