|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.macros.OutputWriter
public class OutputWriter
Describe...
class Example {
public void main(String[] args) {
com.ccg.macros.OutputWriter o = new com.ccg.macros.OutputWriter();
System.out.println(o);
}
}
Output| Constructor Summary | |
|---|---|
OutputWriter(File f)
|
|
OutputWriter(OutputStream out)
Create a Output object which uses a OutputStream to write the results of interpretation
to. |
|
OutputWriter(Writer out)
Create a Output object which uses a Writer to write the results of interpretation to. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(char[] buf,
int ofs,
int len)
Writes a set of characters from a buffer to the output. |
void |
write(Object o)
Outputs the string representation of a Object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputWriter(Writer out)
Output object which uses a Writer to write the results of interpretation to.
out - Writer to write interpretted results to.public OutputWriter(OutputStream out)
Output object which uses a OutputStream to write the results of interpretation
to.
out - Output stream to write interpretted results to.
public OutputWriter(File f)
throws IOException
IOException| Method Detail |
|---|
public void close()
throws IOException
IOException
public void flush()
throws IOException
IOException
public void write(char[] buf,
int ofs,
int len)
throws IOException
AtMacros class) to send a set of characters to the
output device (string, file, etc).
write in interface Outputbuf - A character array to take the data from (must not be null)ofs - Offset into the buffer to the first character to start the
copy from. Should be in the range of [0,buf.length-1].len - How many characters to copy. When added to the offset, the
resulting value should not exceed the length of the array.
IOException - If a I/O error is encountered.
public void write(Object o)
throws IOException
string representation of a Object.
This method is used by macro processors (such as the AtMacros class) to cause the string representation of a Object to be
sent to the output device.
write in interface Outputobject - The object to write out (the toString() method is used to write out the string
representation of the object). You may pass null (in which
case nothing will be done).
IOException - If a I/O error is encountered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||