|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.pdf.InMemoryStreamCache
public class InMemoryStreamCache
StreamCache implementation that uses temporary files rather than heap.
| Constructor Summary | |
|---|---|
InMemoryStreamCache()
Creates a new InMemoryStreamCache. |
|
InMemoryStreamCache(int hintSize)
Creates a new InMemoryStreamCache. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryStreamCache()
public InMemoryStreamCache(int hintSize)
hintSize - a hint about the approximate expected size of the buffer| Method Detail |
|---|
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in interface StreamCachejava.io.IOException - if there is an error getting the output stream
public void write(byte[] data)
throws java.io.IOException
write in interface StreamCachedata - byte array to write
java.io.IOException - if there is an IO error
public int outputContents(java.io.OutputStream out)
throws java.io.IOException
outputContents in interface StreamCacheout - the output stream to write to
java.io.IOException - if there is an IO error writing to the output stream
public int getSize()
throws java.io.IOException
getSize in interface StreamCachejava.io.IOException - if there is an error getting the size
public void clear()
throws java.io.IOException
clear in interface StreamCachejava.io.IOException - if there is an error closing the stream
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||