JBoss Marshalling 1.3.0.GA

org.jboss.marshalling
Class InputStreamByteInput

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.jboss.marshalling.InputStreamByteInput
All Implemented Interfaces:
java.io.Closeable, ByteInput

public class InputStreamByteInput
extends java.io.FilterInputStream
implements ByteInput

An InputStream implementing ByteInput which reads input from another InputStream. Usually the Marshalling.createInputStream(ByteInput) method should be used to create instances because it can detect when the target already extends InputStream.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
InputStreamByteInput(java.io.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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.marshalling.ByteInput
available, read, read, read, skip
 
Methods inherited from interface java.io.Closeable
close
 

Constructor Detail

InputStreamByteInput

public InputStreamByteInput(java.io.InputStream inputStream)
Construct a new instance.

Parameters:
inputStream - the input stream to read from

JBoss Marshalling 1.3.0.GA

Copyright © 2011 JBoss, a division of Red Hat, Inc.