Java Doc for HTMLTransformer.java in  » Web-Crawler » WebSPHINX » websphinx » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Crawler » WebSPHINX » websphinx 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   websphinx.HTMLTransformer

All known Subclasses:   websphinx.LinkTransformer,
HTMLTransformer
public class HTMLTransformer (Code)



Constructor Summary
public  HTMLTransformer(OutputStream out)
     Make an HTMLTransformer that writes pages to a stream.
public  HTMLTransformer(String filename)
     Make an HTMLTransformer that writes pages to a file.
public  HTMLTransformer(String filename, boolean seekable)
     Make an HTMLTransformer that writes pages to a file.
public  HTMLTransformer(HTMLTransformer next)
     Make an HTMLTransformer that writes pages to a downstream HTMLTransformer.

Method Summary
public synchronized  voidclose()
     Close the transformer.
protected  voidemit(Region r)
     Emit a region on the transformer chain's final output.
protected  voidemit(String string)
     Emit a string on the transformer chain's final output.
protected  voidfinalize()
     Finalizes the transformer (calling close()).
public synchronized  voidflush()
     Flushes transformer to its destination stream.
public  longgetFilePointer()
     Get the file pointer.
public  OutputStreamgetOutputStream()
    
public  WritergetOutputWriter()
    
public  RandomAccessFilegetRandomAccessFile()
    
protected  voidhandleElement(Element elem)
     Handle the transformation of an HTML element.
public  voidseek(long pos)
     Seek to a file position.
public  voidsetOutput(OutputStream out)
    
public  voidsetRandomAccessFile(RandomAccessFile raf)
    
protected  voidtransformContents(Element elem)
     Transform the contents of an element.
protected  voidtransformElement(Element elem)
     Transform an element by passing it through the entire filter chain.
public synchronized  voidwrite(String string)
     Writes a literal string through the HTML transformer (without parsing it or transforming it).
public synchronized  voidwrite(Region region)
     Writes a chunk of HTML through the HTML transformer.
public synchronized  voidwritePage(Page page)
     Writes a page through the HTML transformer.


Constructor Detail
HTMLTransformer
public HTMLTransformer(OutputStream out)(Code)
Make an HTMLTransformer that writes pages to a stream.
Parameters:
  out - Stream to receive HTML output



HTMLTransformer
public HTMLTransformer(String filename) throws IOException(Code)
Make an HTMLTransformer that writes pages to a file.
Parameters:
  filename - Name of file to receive HTML output
exception:
  IOException - if file cannot be opened



HTMLTransformer
public HTMLTransformer(String filename, boolean seekable) throws IOException(Code)
Make an HTMLTransformer that writes pages to a file.
Parameters:
  filename - Name of file to receive HTML output
Parameters:
  seekable - True if file should be opened for random access



HTMLTransformer
public HTMLTransformer(HTMLTransformer next)(Code)
Make an HTMLTransformer that writes pages to a downstream HTMLTransformer. Use this constructor to chain together several HTMLTransformers.
Parameters:
  next - HTMLTransformer to receive HTML output




Method Detail
close
public synchronized void close() throws IOException(Code)
Close the transformer. Flushes all buffered data to disk by calling flush(). This call may be time-consuming! Don't use the transformer again after closing it.
exception:
  IOException - if an I/O error occurs



emit
protected void emit(Region r) throws IOException(Code)
Emit a region on the transformer chain's final output. (The region isn't passed through the chain.)
Parameters:
  r - Region to emit



emit
protected void emit(String string) throws IOException(Code)
Emit a string on the transformer chain's final output.
Parameters:
  string - String to emit



finalize
protected void finalize() throws Throwable(Code)
Finalizes the transformer (calling close()).



flush
public synchronized void flush() throws IOException(Code)
Flushes transformer to its destination stream. Empties any buffers in the transformer chain.



getFilePointer
public long getFilePointer() throws IOException(Code)
Get the file pointer. current file pointer
exception:
  IOException - if this transformer not opened for random access



getOutputStream
public OutputStream getOutputStream()(Code)



getOutputWriter
public Writer getOutputWriter()(Code)



getRandomAccessFile
public RandomAccessFile getRandomAccessFile()(Code)



handleElement
protected void handleElement(Element elem) throws IOException(Code)
Handle the transformation of an HTML element. Override this method to modify the HTML as it is written.
Parameters:
  elem - Element to transform



seek
public void seek(long pos) throws IOException(Code)
Seek to a file position.
Parameters:
  pos - file position to seek
exception:
  IOException - if this transformer not opened for random access



setOutput
public void setOutput(OutputStream out)(Code)



setRandomAccessFile
public void setRandomAccessFile(RandomAccessFile raf)(Code)



transformContents
protected void transformContents(Element elem) throws IOException(Code)
Transform the contents of an element. Passes the child elements through the filter chain and emits the text between them.
Parameters:
  elem - Element whose contents should be transformed



transformElement
protected void transformElement(Element elem) throws IOException(Code)
Transform an element by passing it through the entire filter chain.
Parameters:
  elem - Element to be transformed



write
public synchronized void write(String string) throws IOException(Code)
Writes a literal string through the HTML transformer (without parsing it or transforming it).
Parameters:
  string - String to write



write
public synchronized void write(Region region) throws IOException(Code)
Writes a chunk of HTML through the HTML transformer.
Parameters:
  region - Region to write



writePage
public synchronized void writePage(Page page) throws IOException(Code)
Writes a page through the HTML transformer.
Parameters:
  page - Page to write



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.