org.activemath.presentation.formats
Class Format_HTML

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

public class Format_HTML
extends Format

Output stream specialized to produce HTML.

Version:
$Revision: 1.2 $ $Date: 2003/05/13 11:01:50 $

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

public Format_HTML(OutputStream output)
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

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