Class XmlCompressor

java.lang.Object
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor

public class XmlCompressor extends Object
The Class XmlCompressor.
  • Field Details

    • FILE_EXT

      private static final String[] FILE_EXT
      The Constant FILE_EXT.
    • fileExtensions

      private String[] fileExtensions
      The file ext.
    • srcDirPath

      private String srcDirPath
      The src dir path.
    • targetDirPath

      private String targetDirPath
      The target dir path.
    • fileEncoding

      private Charset fileEncoding
      The file encoding.
    • xmlCompressor

      private com.googlecode.htmlcompressor.compressor.XmlCompressor xmlCompressor
      The xml compressor.
  • Constructor Details

    • XmlCompressor

      public XmlCompressor(String srcDirPath, String targetDirPath)
      Instantiates a new xml compressor.
      Parameters:
      srcDirPath - the src dir path
      targetDirPath - the target dir path
  • Method Details

    • compress

      public void compress() throws Exception
      Compress.
      Throws:
      Exception - the exception
    • getFileExtensions

      public String[] getFileExtensions()
      Gets the file extension.
      Returns:
      the file extensions
    • setFileExtensions

      public void setFileExtensions(String[] fileExtensions)
      Sets the file ext.
      Parameters:
      fileExtensions - the new file extensions
    • getSrcDirPath

      public String getSrcDirPath()
      Gets the src dir path.
      Returns:
      the src dir path
    • setSrcDirPath

      public void setSrcDirPath(String srcDirPath)
      Sets the src dir path.
      Parameters:
      srcDirPath - the new src dir path
    • getTargetDirPath

      public String getTargetDirPath()
      Gets the target dir path.
      Returns:
      the target dir path
    • setTargetDirPath

      public void setTargetDirPath(String targetDirPath)
      Sets the target dir path.
      Parameters:
      targetDirPath - the new target dir path
    • getFileEncoding

      public Charset getFileEncoding()
      Gets the file encoding.
      Returns:
      the file encoding
    • setFileEncoding

      public void setFileEncoding(Charset fileEncoding)
      Sets the file encoding.
      Parameters:
      fileEncoding - the new file encoding
    • getXmlCompressor

      public com.googlecode.htmlcompressor.compressor.XmlCompressor getXmlCompressor()
      Gets the xml compressor.
      Returns:
      the xml compressor
    • setXmlCompressor

      public void setXmlCompressor(com.googlecode.htmlcompressor.compressor.XmlCompressor xmlCompressor)
      Sets the xml compressor.
      Parameters:
      xmlCompressor - the new xml compressor