org.apache.geronimo.messaging.io
Class GInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.apache.geronimo.messaging.io.GInputStream
All Implemented Interfaces:
Externalizable, Serializable

public class GInputStream
extends InputStream
implements Externalizable

An Externalizable InputStream Wrapper.
The serialization MUST be performed by a StreamOutputStream, which knows how to encode a stream into an OutputStream.

Version:
$Revision: 1.1 $ $Date: 2004/05/11 12:06:41 $
See Also:
Serialized Form

Constructor Summary
GInputStream()
          Requires for Externalization.
GInputStream(InputStream anIn)
          Wraps the specified InputStream.
 
Method Summary
 InputStream getRawInputStream()
          Gets the wrapped InputStream
 int read()
           
 void readExternal(ObjectInput anIn)
           
 void writeExternal(ObjectOutput anOut)
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GInputStream

public GInputStream()
Requires for Externalization. Do not use.


GInputStream

public GInputStream(InputStream anIn)
Wraps the specified InputStream.

Parameters:
anIn - InputStream to be wrapped.
Method Detail

getRawInputStream

public InputStream getRawInputStream()
Gets the wrapped InputStream

Returns:
Wrapped InputStream.

read

public int read()
         throws IOException
Throws:
IOException

writeExternal

public void writeExternal(ObjectOutput anOut)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput anIn)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.