|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Writer java.io.BufferedWriter edu.sdsc.inca.protocol.ProtocolWriter
public class ProtocolWriter
Field Summary | |
---|---|
protected boolean |
closed
|
protected static org.apache.log4j.Logger |
logger
|
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ProtocolWriter(java.io.OutputStream output)
Create a buffered character-output stream that uses a default-sized output buffer. |
|
ProtocolWriter(java.io.OutputStream output,
int i)
Create a new buffered character-output stream that uses an output buffer of the given size. |
|
ProtocolWriter(java.io.Writer writer)
Create a buffered character-output stream that uses a default-sized output buffer. |
|
ProtocolWriter(java.io.Writer writer,
int i)
Create a new buffered character-output stream that uses an output buffer of the given size. |
Method Summary | |
---|---|
void |
close()
Closes the writer. |
boolean |
isClosed()
Indicates whether or not the writer has been closed. |
void |
write(Statement statement)
Write a statement to the protocolWriter. |
void |
write(java.lang.String command,
java.io.Reader inStream)
Write a statement to the protocolWriter. |
Methods inherited from class java.io.BufferedWriter |
---|
flush, newLine, write, write, write |
Methods inherited from class java.io.Writer |
---|
append, append, append, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.log4j.Logger logger
protected boolean closed
Constructor Detail |
---|
public ProtocolWriter(java.io.Writer writer)
writer
- the writer to send the data topublic ProtocolWriter(java.io.Writer writer, int i)
writer
- to direct the output toi
- buffer sizepublic ProtocolWriter(java.io.OutputStream output)
output
- the stream to send the data topublic ProtocolWriter(java.io.OutputStream output, int i)
output
- the stream to direct the output toi
- buffer sizeMethod Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.BufferedWriter
java.io.IOException
- on a close errorpublic boolean isClosed()
public void write(Statement statement) throws java.io.IOException
statement
- data to write
java.io.IOException
- if the write failspublic void write(java.lang.String command, java.io.Reader inStream) throws java.io.IOException
command
- command for the statement to writeinStream
- data for the statement to write
java.io.IOException
- if the write fails
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |