|
||||||||||
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
org.basex.io.CachedOutput
public final class CachedOutput
This class caches the output bytes in an array. If a maximum is specified, the returned byte array contains a notice that the output was chopped in case there was more data than specified by the limit.
Constructor Summary | |
---|---|
CachedOutput()
Default constructor. |
|
CachedOutput(int m)
Constructor, specifying the maximum number of bytes to write. |
Method Summary | |
---|---|
void |
addInfo()
Adds a textual chopping info to the cached output. |
byte[] |
buffer()
Returns the internal buffer. |
byte[] |
finish()
Returns the output as byte array. |
boolean |
finished()
Checks if stream can output more characters; can be overwritten to interrupt streaming at some point. |
java.lang.String |
toString()
|
void |
write(int b)
|
Methods inherited from class org.basex.io.PrintOutput |
---|
close, flush, print, print, print, print, print, println, println, println, size |
Methods inherited from class java.io.OutputStream |
---|
write, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CachedOutput()
public CachedOutput(int m)
m
- maximumMethod Detail |
---|
public void write(int b)
write
in class PrintOutput
public byte[] finish()
public boolean finished()
PrintOutput
finished
in class PrintOutput
public byte[] buffer()
public java.lang.String toString()
toString
in class java.lang.Object
public void addInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |