Package writer2latex.xhtml
Class CssDocument
- java.lang.Object
-
- writer2latex.xhtml.CssDocument
-
- All Implemented Interfaces:
OutputFile
public class CssDocument extends java.lang.Object implements OutputFile
An implementation ofOutputFilefor CSS documents. (Actually this is a trivial implementation which never parses the files)
-
-
Constructor Summary
Constructors Constructor Description CssDocument(java.lang.String sName)Constructor (creates an empty document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFileName()Returns the file name of theOutputFile.java.lang.StringgetMIMEType()Get the MIME type of theOutputFile.booleanisMasterDocument()Test whether this document is part of the main document flow (master documents) or an auxiliary documentvoidread(java.io.InputStream is)voidread(java.lang.String s)voidwrite(java.io.OutputStream os)Writes theOutputFileto anOutputStream.
-
-
-
Method Detail
-
getFileName
public java.lang.String getFileName()
Description copied from interface:OutputFileReturns the file name of theOutputFile. This includes the file extension and may also include a relative path, always using / as separator.- Specified by:
getFileNamein interfaceOutputFile- Returns:
- the file name of this
OutputFile
-
getMIMEType
public java.lang.String getMIMEType()
Description copied from interface:OutputFileGet the MIME type of theOutputFile.- Specified by:
getMIMETypein interfaceOutputFile- Returns:
- string representation of the MIME type
-
isMasterDocument
public boolean isMasterDocument()
Description copied from interface:OutputFileTest whether this document is part of the main document flow (master documents) or an auxiliary document- Specified by:
isMasterDocumentin interfaceOutputFile- Returns:
- true if this document is a master document
-
write
public void write(java.io.OutputStream os) throws java.io.IOExceptionDescription copied from interface:OutputFileWrites theOutputFileto anOutputStream.- Specified by:
writein interfaceOutputFile- Parameters:
os-OutputStreamto which the content should be written- Throws:
java.io.IOException- if any I/O error occurs
-
read
public void read(java.io.InputStream is) throws java.io.IOException- Throws:
java.io.IOException
-
read
public void read(java.lang.String s)
-
-