Package org.sonews.util.io
Klasse ArticleInputStream
java.lang.Object
java.io.InputStream
org.sonews.util.io.ArticleInputStream
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
Capsulates an ArticleImpl to provide a raw InputStream.
- Seit:
- sonews/0.5.0
- Autor:
- Christian Lins
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Felddetails
-
buf
private final byte[] buf -
pos
private int pos
-
-
Konstruktordetails
-
ArticleInputStream
- Löst aus:
IOExceptionUnsupportedEncodingException
-
-
Methodendetails
-
read
public int read()This method reads one byte from the stream. Theposcounter 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:
readin KlasseInputStream- Gibt zurück:
- The byte read, or -1 if end of stream
-