com.aspose.barcode.common.helpers

Class XmlWriterSettings

  • java.lang.Object
    • com.aspose.barcode.common.helpers.XmlWriterSettings


  • public class XmlWriterSettings
    extends java.lang.Object
    Specifies a set of features
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int getIndentAmount()
      Get the indent amount for the transformer
      boolean isIndent()
      Gets a value indicating whether to indent elements.
      boolean isOmitXmlDeclaration()
      Gets a value indicating whether to omit an XML declaration.
      void setIndent(boolean indent)
      Sets a value indicating whether to indent elements.
      void setIndentAmount(int indentAmount)
      Set the indent amount for the transformer
      void setOmitXmlDeclaration(boolean omitXmlDeclaration)
      Sets a value indicating whether to omit an XML declaration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlWriterSettings

        public XmlWriterSettings()
    • Method Detail

      • isIndent

        public boolean isIndent()
        Gets a value indicating whether to indent elements.
        Returns:
        true to write individual elements on new lines and indent; otherwise, false
      • setIndent

        public void setIndent(boolean indent)
        Sets a value indicating whether to indent elements.
        Parameters:
        indent - the value indicating whether to indent elements.
      • getIndentAmount

        public int getIndentAmount()
        Get the indent amount for the transformer
        Returns:
        the indent amount for the transformer
      • setIndentAmount

        public void setIndentAmount(int indentAmount)
        Set the indent amount for the transformer
      • isOmitXmlDeclaration

        public boolean isOmitXmlDeclaration()
        Gets a value indicating whether to omit an XML declaration.
        Returns:
        true to omit the XML declaration; otherwise, false.
      • setOmitXmlDeclaration

        public void setOmitXmlDeclaration(boolean omitXmlDeclaration)
        Sets a value indicating whether to omit an XML declaration.
        Parameters:
        omitXmlDeclaration - the value indicating whether to omit an XML declaration