writer2latex.xhtml
Class CssDocument

java.lang.Object
  extended by writer2latex.xhtml.CssDocument
All Implemented Interfaces:
OutputFile

public class CssDocument
extends java.lang.Object
implements OutputFile

An implementation of OutputFile for CSS documents. (Actually this is a trivial implementation which never parses the files)


Constructor Summary
CssDocument(java.lang.String sName)
          Constructor (creates an empty document)
 
Method Summary
 java.lang.String getFileName()
          Returns the file name of the OutputFile.
 java.lang.String getMIMEType()
          Get the MIME type of the OutputFile.
 boolean isMasterDocument()
          Test whether this document is part of the main document flow (master documents) or an auxiliary document
 void read(java.io.InputStream is)
           
 void write(java.io.OutputStream os)
          Writes the OutputFile to an OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssDocument

public CssDocument(java.lang.String sName)
Constructor (creates an empty document)

Parameters:
name - Document name.
Method Detail

getFileName

public java.lang.String getFileName()
Description copied from interface: OutputFile
Returns the file name of the OutputFile. This includes the file extension and may also include a relative path, always using / as separator.

Specified by:
getFileName in interface OutputFile
Returns:
the file name of this OutputFile

getMIMEType

public java.lang.String getMIMEType()
Description copied from interface: OutputFile
Get the MIME type of the OutputFile.

Specified by:
getMIMEType in interface OutputFile
Returns:
string representation of the MIME type

isMasterDocument

public boolean isMasterDocument()
Description copied from interface: OutputFile
Test whether this document is part of the main document flow (master documents) or an auxiliary document

Specified by:
isMasterDocument in interface OutputFile
Returns:
true if this document is a master document

write

public void write(java.io.OutputStream os)
           throws java.io.IOException
Description copied from interface: OutputFile
Writes the OutputFile to an OutputStream.

Specified by:
write in interface OutputFile
Parameters:
os - OutputStream to 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