|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.basex.io.PrintOutput
public class PrintOutput
This class is a stream-wrapper for textual data. Note that the internal byte representation (usually UTF8) will be directly output without further character conversion.
| Constructor Summary | |
|---|---|
PrintOutput(java.io.OutputStream out)
Constructor given an output stream. |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
finished()
Checks if stream can output more characters; overwritten by CachedOutput to allow interruptions when the buffer is full. |
void |
flush()
|
void |
print(byte[] token)
Writes a token to the output stream. |
void |
print(char ch)
Writes a character to the output stream. |
void |
print(java.lang.String str)
Writes a string to the output stream. |
void |
println()
Writes a newline to the output stream. |
void |
println(byte[] token)
Writes a token to the output stream. |
void |
println(java.lang.String str)
Writes a string and newline to the output stream. |
void |
printToken(byte[] token,
boolean entity)
Writes a token to the output stream and encodes standard entities if the entity flag is set. |
int |
size()
Returns the number of written bytes. |
void |
write(int b)
|
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintOutput(java.io.OutputStream out)
out - the OutputStream to operate on| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionpublic boolean finished()
CachedOutput to allow interruptions when the buffer is full.
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public final void print(byte[] token)
throws java.io.IOException
token - token to be written
java.io.IOException - in case of write errors
public final void print(char ch)
throws java.io.IOException
ch - string to be written
java.io.IOException - in case of write errors
public final void print(java.lang.String str)
throws java.io.IOException
str - string to be written
java.io.IOException - in case of write errors
public final void println()
throws java.io.IOException
java.io.IOException - in case of write errors
public final void println(byte[] token)
throws java.io.IOException
token - token to be written
java.io.IOException - in case of write errors
public final void println(java.lang.String str)
throws java.io.IOException
str - string to be written
java.io.IOException - in case of write errors
public final void printToken(byte[] token,
boolean entity)
throws java.io.IOException
token - token to be writtenentity - entity encoding
java.io.IOException - in case of write errorspublic final int size()
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||