net.officefloor.plugin.stream.outputstream
Class OutputStreamOutputBufferStream

java.lang.Object
  extended by net.officefloor.plugin.stream.outputstream.OutputStreamOutputBufferStream
All Implemented Interfaces:
OutputBufferStream

public class OutputStreamOutputBufferStream
extends Object
implements OutputBufferStream

OutputBufferStream wrapping an OutputStream.

Author:
Daniel Sagenschneider

Constructor Summary
OutputStreamOutputBufferStream(OutputStream output)
          Initiate.
 
Method Summary
 void append(BufferSquirt squirt)
           
 void append(ByteBuffer buffer)
           
 void close()
           
 OutputStream getOutputStream()
           
 void write(BufferPopulator populator)
           
 void write(byte[] bytes)
           
 void write(byte[] data, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamOutputBufferStream

public OutputStreamOutputBufferStream(OutputStream output)
Initiate.

Parameters:
output - Wrapped OutputStream.
Method Detail

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in interface OutputBufferStream

write

public void write(byte[] bytes)
           throws IOException
Specified by:
write in interface OutputBufferStream
Throws:
IOException

write

public void write(byte[] data,
                  int offset,
                  int length)
           throws IOException
Specified by:
write in interface OutputBufferStream
Throws:
IOException

write

public void write(BufferPopulator populator)
           throws IOException
Specified by:
write in interface OutputBufferStream
Throws:
IOException

append

public void append(ByteBuffer buffer)
            throws IOException
Specified by:
append in interface OutputBufferStream
Throws:
IOException

append

public void append(BufferSquirt squirt)
            throws IOException
Specified by:
append in interface OutputBufferStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface OutputBufferStream
Throws:
IOException


Copyright © 2005-2011. All Rights Reserved.