Package org.jboss.marshalling
Class InputStreamByteInput
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.jboss.marshalling.InputStreamByteInput
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ByteInput
public class InputStreamByteInput extends FilterInputStream implements ByteInput
AnInputStream
implementingByteInput
which reads input from anotherInputStream
. Usually theMarshalling.createInputStream(ByteInput)
method should be used to create instances because it can detect when the target already extendsInputStream
.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description InputStreamByteInput(InputStream inputStream)
Construct a new instance.
-
Method Summary
-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
InputStreamByteInput
public InputStreamByteInput(InputStream inputStream)
Construct a new instance.- Parameters:
inputStream
- the input stream to read from
-
-