|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.io.CountingDeviceDelegator
public final class CountingDeviceDelegator
| Constructor Summary | |
|---|---|
CountingDeviceDelegator(Device d)
|
|
| Method Summary | |
|---|---|
void |
close()
close the Device. |
void |
flush()
Flush this Device. |
long |
getSize()
returns the number of bytes written to this data sink. |
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 a character array. |
Device |
print(char[] c,
int start,
int len)
Print len characters from the specified char array starting at offset off to this Device. |
Device |
print(int i)
Print an integer. |
Device |
print(Object o)
Print any Object |
Device |
print(String s)
Print a String. |
void |
resetSize()
reset the number of bytes to zero. |
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 Device. |
Device |
write(int c)
Writes the specified byte to this data output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CountingDeviceDelegator(Device d)
| Method Detail |
|---|
public boolean isSizePreserving()
Device
isSizePreserving in interface Device
public void flush()
throws IOException
flush in interface DeviceIOException
public void close()
throws IOException
Device
close in interface DeviceIOExceptionpublic long getSize()
public void resetSize()
public Device print(char c)
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(String s)
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 write(int c)
throws IOException
write in interface DeviceIOException
public Device write(byte[] b)
throws IOException
write in interface DeviceIOException
public Device write(byte[] b,
int off,
int len)
throws IOException
write in interface DeviceIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||