org.activemath.presentation.formats
Class FormatThroughTempFile

java.lang.Object
  extended by java.io.OutputStream
      extended by org.activemath.presentation.formats.Format
          extended by 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.

Version:
$Revision: 1.8 $ $Date: 2005/05/10 11:46:25 $

Field Summary
 
Fields inherited from class org.activemath.presentation.formats.Format
log, out
 
Constructor Summary
FormatThroughTempFile(OutputStream output)
           
 
Method Summary
 void close()
           
 void write(byte[] b)
           
 void write(byte[] b, int offset, int len)
           
 void write(int b)
           
 
Methods inherited from class org.activemath.presentation.formats.Format
flush, getAssemblyFormat, getFormatPipeline, getMimeType, getMimeType, getRequiredInputFormat, newFormatStreamFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatThroughTempFile

public FormatThroughTempFile(OutputStream output)
                      throws IOException
Throws:
IOException
Method Detail

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