|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.io.DeviceBuffer
public final class DeviceBuffer
A Device, that buffers the data written to it to be
written to some other Device later (see writeTo(Device))
| Constructor Summary | |
|---|---|
DeviceBuffer()
|
|
DeviceBuffer(int initialCapacity)
|
|
DeviceBuffer(int initialCapacity,
int capacityIncrement)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
close()
close the Device. |
void |
flush()
Flush this Device. |
boolean |
isSizePreserving()
returns, whether this the size of data put into this device is the same as comes out. |
Device |
print(char c)
Print a character. |
Device |
print(char[] c)
Print an array of chars. |
Device |
print(char[] c,
int start,
int len)
Print a character array. |
Device |
print(int i)
Print an integer. |
Device |
print(Object o)
Print any Object |
Device |
print(String s)
Print a String. |
Device |
write(byte b)
Writes b.length bytes from the specified byte array to this output stream. |
Device |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream. |
Device |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
Device |
write(int c)
Writes the specified byte to this data output stream. |
void |
writeTo(Device d)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeviceBuffer(int initialCapacity,
int capacityIncrement)
public DeviceBuffer(int initialCapacity)
public DeviceBuffer()
| Method Detail |
|---|
public boolean isSizePreserving()
Device
isSizePreserving in interface Devicepublic void flush()
Device
flush in interface Devicepublic void close()
Device
close in interface Device
public Device print(String s)
throws IOException
print in interface DeviceIOException
public Device print(char[] c)
throws IOException
print in interface DeviceIOException
public Device print(char[] c,
int start,
int len)
throws IOException
print in interface DeviceIOException
public Device print(int i)
throws IOException
print in interface DeviceIOException
public Device print(Object o)
throws IOException
print in interface DeviceIOException
public Device print(char c)
throws IOException
print in interface DeviceIOException
public Device write(int c)
throws IOException
write in interface DeviceIOException
public Device write(byte b)
throws IOException
IOException
public Device write(byte[] b)
throws IOException
write in interface DeviceIOExceptionpublic void clear()
public Device write(byte[] b,
int off,
int len)
throws IOException
write in interface DeviceIOExceptionpublic void writeTo(Device d)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||