net.sf.mmm.util.io.impl
Class ByteArrayBufferBuffer
java.lang.Object
net.sf.mmm.util.io.impl.AbstractByteArrayBufferBuffer
net.sf.mmm.util.io.impl.ByteArrayBufferBuffer
- All Implemented Interfaces:
- ByteBuffer, ByteIterator, ByteProcessable, ByteProvider, ComposedByteBuffer, ProcessableByteArrayBuffer
public class ByteArrayBufferBuffer
- extends AbstractByteArrayBufferBuffer
This is the regular implementation of the
AbstractByteArrayBufferBuffer
.
ATTENTION:
This class is NOT intended to be exposed. It should only be used internally
by some class or component.
- Since:
- 1.0.1
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
Method Summary |
boolean |
fill(InputStream inputStream)
This method fills this buffer using the given inputStream . |
Methods inherited from class net.sf.mmm.util.io.impl.AbstractByteArrayBufferBuffer |
fill, getByteArray, getByteArrayCount, getBytesAvailable, getCurrentBuffer, getCurrentBufferIndex, hasNext, next, nextBuffer, peek, process, skip, sync |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayBufferBuffer
public ByteArrayBufferBuffer(ByteArrayBufferImpl... buffers)
- The constructor.
- Parameters:
buffers
- are the buffers to concat.
fill
public boolean fill(InputStream inputStream)
throws IOException
- This method fills this buffer using the given
inputStream
. If
the buffer is already filled, this method will have no effect and return
false
.
- Overrides:
fill
in class AbstractByteArrayBufferBuffer
- Parameters:
inputStream
- is the InputStream
providing the data to fill
this buffer with.
- Returns:
true
if the end of the stream was encountered while
(re)filling this buffer, false
otherwise.
- Throws:
IOException
- if caused by the inputStream
whilst
reading.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.