org.activemath.presentation.formats
Class Format_LaTeX
java.lang.Object
java.io.OutputStream
org.activemath.presentation.formats.Format
org.activemath.presentation.formats.Format_LaTeX
- All Implemented Interfaces:
- Closeable, Flushable
public class Format_LaTeX
- extends Format
Output stream specialized to produce LaTeX.
- Version:
- $Revision: 1.15 $ $Date: 2008/11/17 14:23:58 $
| Fields inherited from class org.activemath.presentation.formats.Format |
log, out |
|
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 |
process(Reader input,
OutputStream output)
This method reads the characters and prints their replaced value into the output stream, coercing all values to
bytes. |
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 |
Format_LaTeX
public Format_LaTeX(OutputStream output)
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
process
public void process(Reader input,
OutputStream output)
throws IOException
- This method reads the characters and prints their replaced value into the output stream, coercing all values to
bytes. The method reads and writes the characters one at a time so that it is strongly recommended to put
buffers around. This method is thread-safe.
- Parameters:
input - DOCUMENT ME!output - DOCUMENT ME!
- Throws:
IOException - DOCUMENT ME!