|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.norther.tammi.acorn.io.WriterOutputStream
public class WriterOutputStream
An output stream writing UTF-16 chars directly to a writer.
Note that BOMs are skipped.
| Constructor Summary | |
|---|---|
WriterOutputStream(Writer w)
Constructs a new stream. |
|
WriterOutputStream(Writer w,
boolean s)
Constructs a new stream optionally stripping the high order byte. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(byte[] bb,
int off,
int len)
|
protected void |
write(char c)
Writes one character. |
void |
write(int b)
|
protected void |
write(String str)
Writes a string. |
| Methods inherited from class java.io.OutputStream |
|---|
write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WriterOutputStream(Writer w)
w - the writer.
public WriterOutputStream(Writer w,
boolean s)
w - the writer.s - true to strip, false otherwise.| Method Detail |
|---|
public void write(int b)
throws IOException
write in class OutputStreamIOException
public void write(byte[] bb,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException
protected void write(char c)
throws IOException
c - the character.
IOException - on I/O errors.
protected void write(String str)
throws IOException
str - the string.
IOException - on I/O errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||