src/com/sun/org/apache/xml/internal/serializer/SerializerBase.java

Print this page




 126      * printWriter.
 127      */
 128     private String m_encoding = null;
 129 
 130     /**
 131      * Tells if we should write the XML declaration.
 132      */
 133     private boolean m_shouldNotWriteXMLHeader = false;
 134 
 135     /**
 136      * The standalone value for the doctype.
 137      */
 138     private String m_standalone;
 139 
 140     /**
 141      * True if standalone was specified.
 142      */
 143     protected boolean m_standaloneWasSpecified = false;
 144 
 145     /**





 146      * Flag to tell if indenting (pretty-printing) is on.
 147      */
 148     protected boolean m_doIndent = false;
 149     /**
 150      * Amount to indent.
 151      */
 152     protected int m_indentAmount = 0;
 153 
 154     /**
 155      * Tells the XML version, for writing out to the XML decl.
 156      */
 157     private String m_version = null;
 158 
 159     /**
 160      * The mediatype.  Not used right now.
 161      */
 162     private String m_mediatype;
 163 
 164     /**
 165      * The transformer that was around when this output handler was created (if


 723      * @param m_indentAmount The m_indentAmount to set
 724      */
 725     public void setIndentAmount(int m_indentAmount)
 726     {
 727         this.m_indentAmount = m_indentAmount;
 728     }
 729 
 730     /**
 731      * Sets the value coming from the xsl:output indent stylesheet
 732      * attribute.
 733      * @param doIndent true if the output document should be indented to
 734      * visually indicate its structure.
 735      * @see XSLOutputAttributes#setIndent(boolean)
 736      */
 737     public void setIndent(boolean doIndent)
 738     {
 739         m_doIndent = doIndent;
 740     }
 741 
 742     /**










 743      * This method is used when a prefix/uri namespace mapping
 744      * is indicated after the element was started with a
 745      * startElement() and before and endElement().
 746      * startPrefixMapping(prefix,uri) would be used before the
 747      * startElement() call.
 748      * @param uri the URI of the namespace
 749      * @param prefix the prefix associated with the given URI.
 750      *
 751      * @see ExtendedContentHandler#namespaceAfterStartElement(String, String)
 752      */
 753     public void namespaceAfterStartElement(String uri, String prefix)
 754         throws SAXException
 755     {
 756         // default behavior is to do nothing
 757     }
 758 
 759     /**
 760      * Return a {@link DOMSerializer} interface into this serializer. If the
 761      * serializer does not support the {@link DOMSerializer} interface, it should
 762      * return null.




 126      * printWriter.
 127      */
 128     private String m_encoding = null;
 129 
 130     /**
 131      * Tells if we should write the XML declaration.
 132      */
 133     private boolean m_shouldNotWriteXMLHeader = false;
 134 
 135     /**
 136      * The standalone value for the doctype.
 137      */
 138     private String m_standalone;
 139 
 140     /**
 141      * True if standalone was specified.
 142      */
 143     protected boolean m_standaloneWasSpecified = false;
 144 
 145     /**
 146      * Determine if the output is a standalone.
 147      */
 148     protected boolean m_isStandalone = false;
 149 
 150     /**
 151      * Flag to tell if indenting (pretty-printing) is on.
 152      */
 153     protected boolean m_doIndent = false;
 154     /**
 155      * Amount to indent.
 156      */
 157     protected int m_indentAmount = 0;
 158 
 159     /**
 160      * Tells the XML version, for writing out to the XML decl.
 161      */
 162     private String m_version = null;
 163 
 164     /**
 165      * The mediatype.  Not used right now.
 166      */
 167     private String m_mediatype;
 168 
 169     /**
 170      * The transformer that was around when this output handler was created (if


 728      * @param m_indentAmount The m_indentAmount to set
 729      */
 730     public void setIndentAmount(int m_indentAmount)
 731     {
 732         this.m_indentAmount = m_indentAmount;
 733     }
 734 
 735     /**
 736      * Sets the value coming from the xsl:output indent stylesheet
 737      * attribute.
 738      * @param doIndent true if the output document should be indented to
 739      * visually indicate its structure.
 740      * @see XSLOutputAttributes#setIndent(boolean)
 741      */
 742     public void setIndent(boolean doIndent)
 743     {
 744         m_doIndent = doIndent;
 745     }
 746 
 747     /**
 748      * Sets the isStandalone property
 749      * @param isStandalone true if the ORACLE_IS_STANDALONE is set to yes
 750      * @see OutputPropertiesFactory ORACLE_IS_STANDALONE
 751      */
 752     public void setIsStandalone(boolean isStandalone)
 753     {
 754        m_isStandalone = isStandalone;
 755     }
 756 
 757     /**
 758      * This method is used when a prefix/uri namespace mapping
 759      * is indicated after the element was started with a
 760      * startElement() and before and endElement().
 761      * startPrefixMapping(prefix,uri) would be used before the
 762      * startElement() call.
 763      * @param uri the URI of the namespace
 764      * @param prefix the prefix associated with the given URI.
 765      *
 766      * @see ExtendedContentHandler#namespaceAfterStartElement(String, String)
 767      */
 768     public void namespaceAfterStartElement(String uri, String prefix)
 769         throws SAXException
 770     {
 771         // default behavior is to do nothing
 772     }
 773 
 774     /**
 775      * Return a {@link DOMSerializer} interface into this serializer. If the
 776      * serializer does not support the {@link DOMSerializer} interface, it should
 777      * return null.