|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.io.OutputStreamDevice
public final class OutputStreamDevice
A Device encapsulating a ServletOutputStream
| Constructor Summary | |
|---|---|
OutputStreamDevice(OutputStream out)
|
|
| Method Summary | |
|---|---|
void |
close()
close the Device. |
void |
flush()
Flush this Stream. |
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,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputStreamDevice(OutputStream out)
| 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 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 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 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 | |||||||||