|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
java.io.ByteArrayOutputStream
org.wings.StaticResource.LimitedBuffer
protected static final class StaticResource.LimitedBuffer
An ByteArrayOutputStream that buffers up to the limit MAX_SIZE_TO_BUFFER. Is able to write to an Device.
| Field Summary | |
|---|---|
static int |
MAX_SIZE_TO_BUFFER
|
| Fields inherited from class java.io.ByteArrayOutputStream |
|---|
buf, count |
| Method Summary | |
|---|---|
byte[] |
getBytes()
returns the _raw_ buffer; i.e. |
boolean |
isValid()
returns, whether the filled buffer is within the limits, and thus, its content is valid and can be used. |
void |
setValid(boolean valid)
sets, whether this resource is valid. |
void |
write(byte[] b,
int off,
int len)
write to the stream. |
void |
writeTo(Device out)
write to some output device. |
| Methods inherited from class java.io.ByteArrayOutputStream |
|---|
close, reset, size, toByteArray, toString, toString, toString, 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 |
| Field Detail |
|---|
public static final int MAX_SIZE_TO_BUFFER
| Method Detail |
|---|
public void write(byte[] b,
int off,
int len)
write in class ByteArrayOutputStreampublic boolean isValid()
public void setValid(boolean valid)
public byte[] getBytes()
public void writeTo(Device out)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||