Package org.sonews.util.io
Class ArticleInputStream
java.lang.Object
java.io.InputStream
org.sonews.util.io.ArticleInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Capsulates an ArticleImpl to provide a raw InputStream.
- Since:
- sonews/0.5.0
- Author:
- Christian Lins
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ArticleInputStream
-
-
Method Details
-
read
public int read()This method reads one byte from the stream. Thepos
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 classInputStream
- Returns:
- The byte read, or -1 if end of stream
-