org.activemath.presentation.formats
Class FormatPipe

java.lang.Object
  extended by java.io.OutputStream
      extended by org.activemath.presentation.formats.Format
          extended by org.activemath.presentation.formats.FormatPipe
All Implemented Interfaces:
Closeable, Flushable
Direct Known Subclasses:
Format_GZIP

public abstract class FormatPipe
extends Format

Output stream through a Unix filter (stdin->stdout).

Version:
$Revision: 1.1 $ $Date: 2003/04/11 11:34:49 $

Field Summary
 
Fields inherited from class org.activemath.presentation.formats.Format
log, out
 
Constructor Summary
FormatPipe()
           
FormatPipe(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

FormatPipe

public FormatPipe()

FormatPipe

public FormatPipe(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