JBoss Marshalling 1.3.0.CR9

org.jboss.marshalling
Class OutputStreamByteOutput

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.jboss.marshalling.OutputStreamByteOutput
All Implemented Interfaces:
Closeable, Flushable, ByteOutput

public class OutputStreamByteOutput
extends FilterOutputStream
implements ByteOutput

An OutputStream which implements ByteInput and reads data from another OutputStream. Usually the Marshalling.createByteOutput(java.nio.ByteBuffer) method should be used to create instances because it can detect when the target already extends OutputStream.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
OutputStreamByteOutput(OutputStream outputStream)
          Construct a new instance.
 
Method Summary
 
Methods inherited from class java.io.FilterOutputStream
close, flush, write, write, write
 
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.ByteOutput
write, write, write
 
Methods inherited from interface java.io.Closeable
close
 
Methods inherited from interface java.io.Flushable
flush
 

Constructor Detail

OutputStreamByteOutput

public OutputStreamByteOutput(OutputStream outputStream)
Construct a new instance.

Parameters:
outputStream - the output stream to write to

JBoss Marshalling 1.3.0.CR9

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