|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--java.io.Writer
Class for writing to character streams
| Field Summary | |
protected Object |
lock
The lock object |
| Constructor Summary | |
protected |
Writer()
create the writer that locks on itself |
protected |
Writer(Object lock)
create a writer that locks on the requested object |
| Method Summary | |
abstract void |
close()
Close the stream |
abstract void |
flush()
Flush the buffer |
void |
write(char[] cbuf)
Write a character array |
abstract void |
write(char[] cbuf,
int off,
int len)
Write a portion of a character array |
void |
write(int c)
Write a character |
void |
write(java.lang.String str)
Write a string to the stream |
void |
write(java.lang.String str,
int off,
int len)
Write a number of characters from a string to the stream |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Object lock
| Constructor Detail |
protected Writer()
protected Writer(Object lock)
lock - The lock to use| Method Detail |
public void write(int c)
throws IOException
c - The character to write - only use the low 16 bits
IOException - if there is an IO error
public void write(char[] cbuf)
throws IOException
cbuf - The buffer to write
IOException - if there is a problem
public abstract void write(char[] cbuf,
int off,
int len)
throws IOException
cbuf - The buffer to writeoff - The offset into the bufferlen - The number of characters to write
IOException - if there is an IO error
public void write(java.lang.String str)
throws IOException
str - The string
IOException - if there is an IO error
public void write(java.lang.String str,
int off,
int len)
throws IOException
str - The stringoff - The offset into the stringlen - The length of the string
IOException - if there is an IO error
public abstract void flush()
throws IOException
IOException - if there is an IO error
public abstract void close()
throws IOException
IOException - if there is an IO error
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||