Package de.aristaflow.adept2.util.io
Class RereadableContent.RrcInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.aristaflow.adept2.util.io.AttributedInputStream
de.aristaflow.adept2.util.io.RereadableContent.RrcInputStream
- All Implemented Interfaces:
Attributable,Closeable,AutoCloseable
- Enclosing class:
- RereadableContent
This class is an input stream that also provides the
RereadableContent it has been
created for. This allows to easily reuse the RereadableContent without copying its
data.-
Field Summary
Fields inherited from class de.aristaflow.adept2.util.io.AttributedInputStream
cleanupFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionRrcInputStream(InputStream is, RereadableContent rrc, CleanupTask<IOException> cleanup) Creates a new input stream with the designated input stream as content and wrapping the designatedRereadableContent. -
Method Summary
Methods inherited from class de.aristaflow.adept2.util.io.AttributedInputStream
close, computeIfAbsent, contains, containsType, get, putIfAbsent, remove, replace, replace, unwrapMethods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
RrcInputStream
Creates a new input stream with the designated input stream as content and wrapping the designatedRereadableContent.- Parameters:
is- The content of theRereadableContentrrc- The wrappedRereadableContentthat created this input stream.cleanup- An additional clean-up task for the created instance.
-