org.activemath.presentation.formats
Class Format_PDF

java.lang.Object
  extended by java.io.OutputStream
      extended by org.activemath.presentation.formats.Format
          extended by org.activemath.presentation.formats.FormatThroughTempFile
              extended by org.activemath.presentation.formats.Format_PDF
All Implemented Interfaces:
Closeable, Flushable

public class Format_PDF
extends FormatThroughTempFile

Output stream specialized to produce PDF.

Version:
$Revision: 1.6 $ $Date: 2005/04/18 07:52:48 $

Field Summary
 
Fields inherited from class org.activemath.presentation.formats.Format
log, out
 
Constructor Summary
Format_PDF(OutputStream output)
           
 
Method Summary
 String getMimeType()
          Gives the mime type for the output format.
 String getRequiredInputFormat()
          Tells the caller in what format it must give input to get the format provided by the class.
 
Methods inherited from class org.activemath.presentation.formats.FormatThroughTempFile
close, write, write, write
 
Methods inherited from class org.activemath.presentation.formats.Format
flush, getAssemblyFormat, getFormatPipeline, getMimeType, newFormatStreamFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Format_PDF

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

getRequiredInputFormat

public String getRequiredInputFormat()
Description copied from class: Format
Tells the caller in what format it must give input to get the format provided by the class. Depends on what formats have been implemented in org.activemath.presentation.Page.

Specified by:
getRequiredInputFormat in class Format
Returns:
Format required on input.

getMimeType

public String getMimeType()
Description copied from class: Format
Gives the mime type for the output format.

Specified by:
getMimeType in class Format
Returns:
MIME type as string.
See Also:
IANA MIME types, RFC 1700, Thread in RedHat's XDG list, 2002-04-20, freedesktop.org Shared MIME-Info specification