Package de.mhus.lib.core.io
Class PartialInputStream
- java.lang.Object
-
- java.io.InputStream
-
- de.mhus.lib.core.io.PartialInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class PartialInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description PartialInputStream(InputStream pSrc, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBytesLeft()intread()voidsetDelimiter(Integer d)voidsetLength(int length)-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
PartialInputStream
public PartialInputStream(InputStream pSrc, int length)
-
-
Method Detail
-
setLength
public void setLength(int length)
-
getBytesLeft
public int getBytesLeft()
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
setDelimiter
public void setDelimiter(Integer d)
-
-