Class XmlCompressor
java.lang.Object
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String[]
The Constant FILE_EXT.private Charset
The file encoding.private String[]
The file ext.private String
The src dir path.private String
The target dir path.private com.googlecode.htmlcompressor.compressor.XmlCompressor
The xml compressor. -
Constructor Summary
ConstructorDescriptionXmlCompressor
(String srcDirPath, String targetDirPath) Instantiates a new xml compressor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
compress()
Compress.Gets the file encoding.String[]
Gets the file extension.Gets the src dir path.Gets the target dir path.com.googlecode.htmlcompressor.compressor.XmlCompressor
Gets the xml compressor.void
setFileEncoding
(Charset fileEncoding) Sets the file encoding.void
setFileExtensions
(String[] fileExtensions) Sets the file ext.void
setSrcDirPath
(String srcDirPath) Sets the src dir path.void
setTargetDirPath
(String targetDirPath) Sets the target dir path.void
setXmlCompressor
(com.googlecode.htmlcompressor.compressor.XmlCompressor xmlCompressor) Sets the xml compressor.
-
Field Details
-
FILE_EXT
The Constant FILE_EXT. -
fileExtensions
The file ext. -
srcDirPath
The src dir path. -
targetDirPath
The target dir path. -
fileEncoding
The file encoding. -
xmlCompressor
private com.googlecode.htmlcompressor.compressor.XmlCompressor xmlCompressorThe xml compressor.
-
-
Constructor Details
-
XmlCompressor
-
-
Method Details
-
compress
-
getFileExtensions
-
setFileExtensions
Sets the file ext.- Parameters:
fileExtensions
- the new file extensions
-
getSrcDirPath
-
setSrcDirPath
Sets the src dir path.- Parameters:
srcDirPath
- the new src dir path
-
getTargetDirPath
-
setTargetDirPath
Sets the target dir path.- Parameters:
targetDirPath
- the new target dir path
-
getFileEncoding
-
setFileEncoding
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
-