|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
prefuse.util.collections.ByteArrayList
public class ByteArrayList
A minor extension to ByteArrayOutputStream which prevents unnecessary copying of data when creating an InputStream.
| Field Summary |
|---|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Constructor Summary | |
|---|---|
ByteArrayList()
Creates a new ByteArrayList. |
|
ByteArrayList(int size)
Creates a new ByteArrayList, with a buffer capacity of the specified size, in bytes. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getAsInputStream()
|
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
| Methods inherited from class java.io.OutputStream |
|---|
flush, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayList()
public ByteArrayList(int size)
size - the initial size.
java.lang.IllegalArgumentException - if size is negative.| Method Detail |
|---|
public java.io.InputStream getAsInputStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||