|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--websphinx.HTMLTransformer
| Constructor Summary | |
HTMLTransformer(HTMLTransformer next)
Make an HTMLTransformer that writes pages to a downstream HTMLTransformer. |
|
HTMLTransformer(java.io.OutputStream out)
Make an HTMLTransformer that writes pages to a stream. |
|
HTMLTransformer(java.lang.String filename)
Make an HTMLTransformer that writes pages to a file. |
|
HTMLTransformer(java.lang.String filename,
boolean seekable)
Make an HTMLTransformer that writes pages to a file. |
|
| Method Summary | |
void |
close()
Close the transformer. |
protected void |
emit(Region r)
Emit a region on the transformer chain's final output. |
protected void |
emit(java.lang.String string)
Emit a string on the transformer chain's final output. |
protected void |
finalize()
Finalizes the transformer (calling close()). |
void |
flush()
Flushes transformer to its destination stream. |
long |
getFilePointer()
Get the file pointer. |
java.io.OutputStream |
getOutputStream()
|
java.io.Writer |
getOutputWriter()
|
java.io.RandomAccessFile |
getRandomAccessFile()
|
protected void |
handleElement(Element elem)
Handle the transformation of an HTML element. |
void |
seek(long pos)
Seek to a file position. |
void |
setOutput(java.io.OutputStream out)
|
void |
setRandomAccessFile(java.io.RandomAccessFile raf)
|
protected void |
transformContents(Element elem)
Transform the contents of an element. |
protected void |
transformElement(Element elem)
Transform an element by passing it through the entire filter chain. |
void |
write(Region region)
Writes a chunk of HTML through the HTML transformer. |
void |
write(java.lang.String string)
Writes a literal string through the HTML transformer (without parsing it or transforming it). |
void |
writePage(Page page)
Writes a page through the HTML transformer. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HTMLTransformer(java.io.OutputStream out)
out - Stream to receive HTML output
public HTMLTransformer(java.lang.String filename)
throws java.io.IOException
filename - Name of file to receive HTML outputjava.io.IOException - if file cannot be opened
public HTMLTransformer(java.lang.String filename,
boolean seekable)
throws java.io.IOException
filename - Name of file to receive HTML outputseekable - True if file should be opened for random accesspublic HTMLTransformer(HTMLTransformer next)
next - HTMLTransformer to receive HTML output| Method Detail |
public void setOutput(java.io.OutputStream out)
public java.io.OutputStream getOutputStream()
public java.io.Writer getOutputWriter()
public void setRandomAccessFile(java.io.RandomAccessFile raf)
public java.io.RandomAccessFile getRandomAccessFile()
public void write(java.lang.String string)
throws java.io.IOException
string - String to write
public void write(Region region)
throws java.io.IOException
region - Region to write
public void writePage(Page page)
throws java.io.IOException
page - Page to write
public void flush()
throws java.io.IOException
public void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Object
public long getFilePointer()
throws java.io.IOException
java.io.IOException - if this transformer not opened for random access
public void seek(long pos)
throws java.io.IOException
pos - file position to seekjava.io.IOException - if this transformer not opened for random access
protected void transformElement(Element elem)
throws java.io.IOException
elem - Element to be transformed
protected void transformContents(Element elem)
throws java.io.IOException
elem - Element whose contents should be transformed
protected void handleElement(Element elem)
throws java.io.IOException
elem - Element to transform
protected void emit(Region r)
throws java.io.IOException
r - Region to emit
protected void emit(java.lang.String string)
throws java.io.IOException
string - String to emit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||