org.activemath.presentation.formats
Class FormatThroughTempFile
java.lang.Object
java.io.OutputStream
org.activemath.presentation.formats.Format
org.activemath.presentation.formats.FormatThroughTempFile
- All Implemented Interfaces:
- Closeable, Flushable
- Direct Known Subclasses:
- Format_PDF
public abstract class FormatThroughTempFile
- extends Format
Output stream using temp files.
- Data coming in through @link write() is written to a temp file.
- On @link close(), we start an @link org.activemath.presentation.io.ExecStream
with this temp file as input.
- When ExecStream's process is finished, we copy the file it generated to our output.
- Version:
- $Revision: 1.8 $ $Date: 2005/05/10 11:46:25 $
| Fields inherited from class org.activemath.presentation.formats.Format |
log, out |
|
Method Summary |
void |
close()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int offset,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormatThroughTempFile
public FormatThroughTempFile(OutputStream output)
throws IOException
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write in class Format
- Throws:
IOException
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class Format
- Throws:
IOException
write
public void write(byte[] b,
int offset,
int len)
throws IOException
- Overrides:
write in class Format
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class Format
- Throws:
IOException