Package org.cip4.jdflib.util
Class PrefixInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.cip4.jdflib.util.PrefixInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
stream class that allows allows prefixing of a stream without requiring a copy
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionPrefixInputStream(InputStream stream1, InputStream stream2) PrefixInputStream(String prefix, InputStream stream2) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, markSupported, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
PrefixInputStream
- Parameters:
stream1-stream2-
-
PrefixInputStream
- Parameters:
prefix-stream2-
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException- See Also:
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException- See Also:
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException- See Also:
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream- See Also:
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException- See Also:
-
toString
-