|
|||||||||
| 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 | |
|---|---|
byte[] |
finish()
Returns the output as byte array. |
boolean |
finished()
Checks if stream can output more characters; overwritten by CachedOutput to allow interruptions when the buffer is full. |
void |
reset()
Resets the output array. |
java.lang.String |
toString()
|
void |
write(int b)
|
| Methods inherited from class org.basex.io.PrintOutput |
|---|
close, flush, print, print, print, println, println, println, printToken, 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 - maximum| Method Detail |
|---|
public byte[] finish()
public boolean finished()
PrintOutputCachedOutput to allow interruptions when the buffer is full.
finished in class PrintOutputpublic void reset()
public java.lang.String toString()
toString in class java.lang.Objectpublic void write(int b)
write in class PrintOutput
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||