|
GXPARSE hosted by |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
ca.gorman.io.ParallelWriter
public class ParallelWriter
Writer that copies to an array of Writers.
Field Summary |
---|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ParallelWriter(Writer[] writer)
Construct on an array of destination Writers. |
Method Summary | |
---|---|
void |
close()
Close all Writers. |
void |
flush()
Flush all Writers. |
void |
write(char[] cbuf)
Copy an array of characters to all Writers. |
void |
write(char[] cbuf,
int off,
int len)
Copy a subarray of characters to all Writers. |
void |
write(int c)
Copy a character to all Writers. |
void |
write(String str)
Copy a String to all Writers. |
void |
write(String str,
int off,
int len)
Copy a substring to all Writers. |
Methods inherited from class java.io.Writer |
---|
append, append, append |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParallelWriter(Writer[] writer)
Construct on an array of destination Writers.
NullPointerException
- when the array or any Writer is nullMethod Detail |
---|
public void close() throws IOException
Close all Writers.
close
in interface Closeable
close
in class Writer
IOException
Writer.close()
public void flush() throws IOException
Flush all Writers.
flush
in interface Flushable
flush
in class Writer
IOException
Writer.flush()
public void write(char[] cbuf) throws IOException
Copy an array of characters to all Writers.
write
in class Writer
IOException
Writer.write(char[])
public void write(char[] cbuf, int off, int len) throws IOException
Copy a subarray of characters to all Writers.
write
in class Writer
IOException
Writer.write(char[], int, int)
public void write(int c) throws IOException
Copy a character to all Writers.
write
in class Writer
IOException
Writer.write(int)
public void write(String str) throws IOException
Copy a String to all Writers.
write
in class Writer
IOException
Writer.write(String)
public void write(String str, int off, int len) throws IOException
Copy a substring to all Writers.
write
in class Writer
IOException
Writer.write(String, int, int)
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |