|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface used to store the bytes for a PDFStream. It's actually a generic cached byte array. There's a factory that returns either an in-memory or tempfile based implementation based on a cacheToFile setting.
| Method Summary | |
void |
clear()
Clears and resets the cache. |
java.io.OutputStream |
getOutputStream()
Get the current OutputStream. |
int |
getSize()
Returns the current size of the stream. |
int |
outputContents(java.io.OutputStream out)
Outputs the cached bytes to the given stream. |
void |
write(byte[] data)
Convenience method for writing data to the stream cache. |
| Method Detail |
public java.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOException - if there is an IO error
public void write(byte[] data)
throws java.io.IOException
data - byte array to write
java.io.IOException - if there is an IO error
public int outputContents(java.io.OutputStream out)
throws java.io.IOException
out - the stream to write to
java.io.IOException - if there is an IO error
public int getSize()
throws java.io.IOException
java.io.IOException - if there is an IO error
public void clear()
throws java.io.IOException
java.io.IOException - if there is an IO error
|
fop 1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||