public class XMLCompress
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
XMLCompress()
Constructs this object by setting the various parameter
|
| Modifier and Type | Method and Description |
|---|---|
void |
DOMCompress()
Compress the XML Data set in the Text InputStream of this object and writes the compressed data into the binary outputstream
|
void |
DOMCompress(CLOB clob)
Compress the xml data contained in the CLOB object and writes the compressed data into the binary outputstream of this object
|
void |
DOMCompress(java.io.File inpTxtfile, java.io.File outpBinfile)
Compress the xml data contained in the inpTxtfile and writes the compressed ouput to outpBinfile
|
void |
DOMCompress(java.io.InputStream is)
Compress the XML Data set in the Text InputStream and writes the compressed data into the binary outputstream
|
void |
DOMCompress(java.lang.String xmldoc)
Compress the xml data contained in the java String and writes the compressed data into the binary outputstream of this object
|
void |
DOMCompress(XMLDocument xmldoc)
Compress the XMLDocument object and writes the compressed data into the binary outputstream of this object
|
void |
DOMExpand()
Uncompresses the binary inputstream and populates the XMLDocument of this object.
|
void |
DOMExpand(BLOB blob)
Uncompresses the BLOB parameter and populates the XMLDocument of this object.
|
void |
DOMExpand(java.io.File inpBinfile, java.io.File outpTxtfile)
UnCompress the data contained in the inpBinfile and writes the compressed ouput to outpTxtfile
|
void |
DOMExpand(java.io.InputStream inpstr)
Uncompresses the binary inputstream parameter and populates the XMLDocument of this object.
|
float |
getCompPercent()
Return the compression factor.
|
XMLDocument |
getXMLDocument()
Returns the XMLDocument object obtained from compressed data
|
void |
SAXCompress(java.io.File inpTxtfile, java.io.File outpBinfile)
Compress the xml data contained in the inpTxtfile and writes the compressed ouput to outpBinfile
|
void |
SAXCompress(java.io.InputStream xmltext)
Compress the XML data in the Inputstream to a binary stream which contains the SAX events
|
void |
SAXCompress(java.lang.String xmltext)
Compress the XML data in the String to a binary stream which contains the SAX events
|
void |
setBinInputStream(java.io.InputStream binstr)
Sets the Binary inputstream to write the compressed data
|
void |
setBinOutputStream(java.io.OutputStream binstr)
Sets the Binary outputstream to write the compressed data
|
void |
setXMLDocument(XMLDocument setDoc)
Sets the XMLDocument object that needs to be Compressed
|
void |
setXmlTextInputStream(java.io.InputStream txtstr)
Sets the Text Inputstream to compress the data
|
void |
setXmlTextOutputStream(java.io.OutputStream txtstr)
Sets the Text outputstream to write the XML data
|
public XMLCompress()
public void setBinOutputStream(java.io.OutputStream binstr)
Java - OutputStreampublic void setBinInputStream(java.io.InputStream binstr)
Java - InpputStreampublic void setXmlTextOutputStream(java.io.OutputStream txtstr)
Java - outputStreampublic void setXmlTextInputStream(java.io.InputStream txtstr)
Java - InputStreampublic XMLDocument getXMLDocument()
public void setXMLDocument(XMLDocument setDoc)
XMLDocument - object
public void DOMCompress()
throws XMLParseException,
SAXException,
java.io.IOException
XMLParseException, - SAXException, IOExceptionXMLParseExceptionSAXExceptionjava.io.IOException
public void DOMCompress(java.io.InputStream is)
throws XMLParseException,
SAXException,
java.io.IOException
Java - InputStream containing the XML DataXMLParseException, - SAXException, IOExceptionXMLParseExceptionSAXExceptionjava.io.IOExceptionpublic void DOMCompress(XMLDocument xmldoc) throws java.io.IOException
XMLDocument - objectjava.io.IOException
public void DOMCompress(java.lang.String xmldoc)
throws XMLParseException,
SAXException,
java.io.IOException
Java - stringjava.io.IOExceptionXMLParseExceptionSAXException
public void DOMCompress(CLOB clob)
throws XMLParseException,
SAXException,
java.io.IOException,
java.sql.SQLException
Java - stringoracle.sql.CLOBjava.io.IOExceptionXMLParseExceptionSAXExceptionjava.sql.SQLException
public void DOMCompress(java.io.File inpTxtfile,
java.io.File outpBinfile)
throws java.io.IOException,
XMLParseException,
SAXException,
java.sql.SQLException
java - file inpTxtfilejava - file outpBinfileIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionSAXExceptionjava.sql.SQLException
public void DOMExpand()
throws java.io.IOException,
java.io.EOFException,
java.lang.ClassNotFoundException
IOException,EOFException,ClassNotFoundExceptionjava.io.IOExceptionjava.io.EOFExceptionjava.lang.ClassNotFoundException
public void DOMExpand(java.io.InputStream inpstr)
throws java.io.IOException,
java.io.EOFException,
java.lang.ClassNotFoundException
java - InputStreamIOException,EOFException,ClassNotFoundExceptionjava.io.IOExceptionjava.io.EOFExceptionjava.lang.ClassNotFoundException
public void DOMExpand(BLOB blob)
throws java.sql.SQLException,
java.io.IOException,
java.io.EOFException,
java.lang.ClassNotFoundException
oracle.sql.BLOB -SQLException,IOException,EOFException,ClassNotFoundExceptionjava.sql.SQLExceptionjava.io.IOExceptionjava.io.EOFExceptionjava.lang.ClassNotFoundException
public void DOMExpand(java.io.File inpBinfile,
java.io.File outpTxtfile)
throws java.io.IOException,
XMLParseException,
java.sql.SQLException,
java.lang.ClassNotFoundException
java - file inpBinfilejava - file outpTxtfileIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionjava.sql.SQLExceptionjava.lang.ClassNotFoundException
public void SAXCompress(java.io.InputStream xmltext)
throws SAXException,
XMLParseException,
java.io.IOException
java - InputStreamSAXException,XMLParseException,IOExceptionSAXExceptionXMLParseExceptionjava.io.IOException
public void SAXCompress(java.io.File inpTxtfile,
java.io.File outpBinfile)
throws java.io.IOException,
XMLParseException,
SAXException
java - file inpTxtfilejava - file outpBinfileIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionSAXException
public void SAXCompress(java.lang.String xmltext)
throws SAXException,
XMLParseException,
java.io.IOException
java - InputStreamSAXException,XMLParseException,IOExceptionSAXExceptionXMLParseExceptionjava.io.IOExceptionpublic float getCompPercent()
none -