Package org.cip4.jdflib.util
Class PrefixInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.cip4.jdflib.util.PrefixInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class PrefixInputStream extends java.io.FilterInputStreamstream class that allows allows prefixing of a stream without requiring a copy
-
-
Constructor Summary
Constructors Constructor Description PrefixInputStream(java.io.InputStream stream1, java.io.InputStream stream2)PrefixInputStream(java.lang.String prefix, java.io.InputStream stream2)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmark(int readlimit)intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()java.lang.StringtoString()
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException- See Also:
FilterInputStream.read()
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException- See Also:
FilterInputStream.read(byte[], int, int)
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException- See Also:
FilterInputStream.read(byte[])
-
mark
public void mark(int readlimit)
- Overrides:
markin classjava.io.FilterInputStream- See Also:
FilterInputStream.mark(int)
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.FilterInputStream- Throws:
java.io.IOException- See Also:
FilterInputStream.reset()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-