| java.lang.Object org.wings.io.NullDevice
NullDevice | final public class NullDevice implements Device,Serializable(Code) | | Device, that discards everything. For debugging purposes.
Counts the number of bytes written (not exactly, since for print() methods,
it counts the number of characters, that might not be the same as
bytes).
author: Henner Zeller |
Method Summary | |
public void | close() | public void | flush() Flush this Device. | public long | getSize() returns the number of bytes written to this data sink. | public boolean | isSizePreserving() | public Device | print(char c) Print a character. | public Device | print(char[] c) Print a character array. | public Device | print(char[] c, int start, int len) Print len characters from the specified char array starting at offset
off to this Device. | public Device | print(String s) Print a String. | public Device | print(int i) Print an integer. | public Device | print(Object o) | public void | resetSize() reset the number of bytes to zero. | public Device | write(int c) Writes the specified byte to this data output stream. | public Device | write(byte b) Writes b.length bytes from the specified byte array to this
output stream. | public Device | write(byte b, int off, int len) Writes len bytes from the specified byte array starting at offset
off to this Device. |
NullDevice | public NullDevice()(Code) | | |
close | public void close()(Code) | | |
flush | public void flush()(Code) | | Flush this Device.
|
getSize | public long getSize()(Code) | | returns the number of bytes written to this data sink.
|
isSizePreserving | public boolean isSizePreserving()(Code) | | |
print | public Device print(char[] c)(Code) | | Print a character array.
|
print | public Device print(char[] c, int start, int len)(Code) | | Print len characters from the specified char array starting at offset
off to this Device.
|
resetSize | public void resetSize()(Code) | | reset the number of bytes to zero.
|
write | public Device write(int c)(Code) | | Writes the specified byte to this data output stream.
|
write | public Device write(byte b)(Code) | | Writes b.length bytes from the specified byte array to this
output stream.
|
write | public Device write(byte b, int off, int len)(Code) | | Writes len bytes from the specified byte array starting at offset
off to this Device.
|
|
|