com.silverpeas.util.html
Class EntitiesRefWriter

java.lang.Object
  extended by org.cyberneko.html.filters.DefaultFilter
      extended by org.cyberneko.html.filters.Writer
          extended by com.silverpeas.util.html.EntitiesRefWriter
All Implemented Interfaces:
org.apache.xerces.xni.parser.XMLComponent, org.apache.xerces.xni.parser.XMLDocumentFilter, org.apache.xerces.xni.parser.XMLDocumentSource, org.apache.xerces.xni.XMLDocumentHandler, org.cyberneko.html.HTMLComponent

public class EntitiesRefWriter
extends org.cyberneko.html.filters.Writer


Field Summary
 
Fields inherited from class org.cyberneko.html.filters.Writer
AUGMENTATIONS, fElementDepth, fEncoding, FILTERS, fNormalize, fPrintChars, fPrinter, fSeenHttpEquiv, fSeenRootElement, NOTIFY_CHAR_REFS, NOTIFY_HTML_BUILTIN_REFS
 
Fields inherited from class org.cyberneko.html.filters.DefaultFilter
fDocumentHandler, fDocumentSource
 
Constructor Summary
EntitiesRefWriter()
          Constructs a writer filter that prints to standard out.
EntitiesRefWriter(OutputStream outputStream, String encoding)
          Constructs a writer filter using the specified output stream and encoding.
EntitiesRefWriter(Writer writer, String encoding)
          Constructs a writer filter using the specified Java writer and encoding.
 
Method Summary
protected  void printEntity(String name)
           
 void setWriter(Writer writer, String encoding)
           
 
Methods inherited from class org.cyberneko.html.filters.Writer
characters, comment, emptyElement, endElement, endGeneralEntity, main, printAttributeValue, printCharacters, printEndElement, printStartElement, startDocument, startDocument, startElement, startGeneralEntity
 
Methods inherited from class org.cyberneko.html.filters.DefaultFilter
doctypeDecl, endCDATA, endDocument, endPrefixMapping, getDocumentHandler, getDocumentSource, getFeatureDefault, getPropertyDefault, getRecognizedFeatures, getRecognizedProperties, ignorableWhitespace, merge, processingInstruction, reset, setDocumentHandler, setDocumentSource, setFeature, setProperty, startCDATA, startPrefixMapping, textDecl, xmlDecl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntitiesRefWriter

public EntitiesRefWriter()
Constructs a writer filter that prints to standard out.


EntitiesRefWriter

public EntitiesRefWriter(OutputStream outputStream,
                         String encoding)
                  throws UnsupportedEncodingException
Constructs a writer filter using the specified output stream and encoding.

Parameters:
outputStream - The output stream to write to.
encoding - The encoding to be used for the output. The encoding name should be an official IANA encoding name.
Throws:
UnsupportedEncodingException

EntitiesRefWriter

public EntitiesRefWriter(Writer writer,
                         String encoding)
Constructs a writer filter using the specified Java writer and encoding.

Parameters:
writer - The Java writer to write to.
encoding - The encoding to be used for the output. The encoding name should be an official IANA encoding name.
Method Detail

setWriter

public void setWriter(Writer writer,
                      String encoding)

printEntity

protected void printEntity(String name)
Overrides:
printEntity in class org.cyberneko.html.filters.Writer


Copyright © 2016 Silverpeas. All Rights Reserved.