net.officefloor.plugin.stream.squirtfactory
Class BufferSquirtImpl

java.lang.Object
  extended by net.officefloor.plugin.stream.squirtfactory.BufferSquirtImpl
All Implemented Interfaces:
BufferSquirt

public class BufferSquirtImpl
extends Object
implements BufferSquirt

BufferSquirt implementation that wraps a ByteBuffer.

Author:
Daniel Sagenschneider

Constructor Summary
BufferSquirtImpl(ByteBuffer buffer)
          Initiate.
 
Method Summary
 void close()
          Closes and releases any resources.
 ByteBuffer getBuffer()
          Obtains the ByteBuffer for this squirt in the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferSquirtImpl

public BufferSquirtImpl(ByteBuffer buffer)
Initiate.

Parameters:
buffer - ByteBuffer.
Method Detail

getBuffer

public ByteBuffer getBuffer()
Description copied from interface: BufferSquirt
Obtains the ByteBuffer for this squirt in the stream.

Specified by:
getBuffer in interface BufferSquirt
Returns:
ByteBuffer.

close

public void close()
Description copied from interface: BufferSquirt
Closes and releases any resources.

Specified by:
close in interface BufferSquirt


Copyright © 2005-2011. All Rights Reserved.