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(oracle.sql.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 |
DOMCompress(XMLType xmldoc)
Compress the xml data contained in the database XMLType 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(oracle.sql.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)
binstr - - Java OutputStreampublic void setBinInputStream(java.io.InputStream binstr)
binstr - - Java InpputStreampublic void setXmlTextOutputStream(java.io.OutputStream txtstr)
txtstr - - Java outputStreampublic void setXmlTextInputStream(java.io.InputStream txtstr)
txtstr - - Java InputStreampublic XMLDocument getXMLDocument()
public void setXMLDocument(XMLDocument setDoc)
setDoc - - XMLDocument objectpublic void DOMCompress()
throws XMLParseException,
SAXException,
java.io.IOException
XMLParseException, - SAXException, IOExceptionXMLParseExceptionSAXExceptionjava.io.IOExceptionpublic void DOMCompress(java.io.InputStream is)
throws XMLParseException,
SAXException,
java.io.IOException
is - - Java InputStream containing the XML DataXMLParseException, - SAXException, IOExceptionXMLParseExceptionSAXExceptionjava.io.IOExceptionpublic void DOMCompress(XMLDocument xmldoc) throws java.io.IOException
xmldoc - - XMLDocument objectjava.io.IOExceptionpublic void DOMCompress(java.lang.String xmldoc)
throws XMLParseException,
SAXException,
java.io.IOException
xmldoc - - Java stringjava.io.IOExceptionXMLParseExceptionSAXExceptionpublic void DOMCompress(oracle.sql.CLOB clob)
throws XMLParseException,
SAXException,
java.io.IOException,
java.sql.SQLException
clob - - Java stringoracle.sql.CLOBjava.io.IOExceptionXMLParseExceptionSAXExceptionjava.sql.SQLExceptionpublic void DOMCompress(XMLType xmldoc) throws java.io.IOException, XMLParseException, SAXException, java.sql.SQLException
xmldoc - - oracle.xdb.XMLTypeIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionSAXExceptionjava.sql.SQLExceptionpublic void DOMCompress(java.io.File inpTxtfile,
java.io.File outpBinfile)
throws java.io.IOException,
XMLParseException,
SAXException,
java.sql.SQLException
inpTxtfile - - java file inpTxtfileoutpBinfile - - java file outpBinfileIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionSAXExceptionjava.sql.SQLExceptionpublic void DOMExpand()
throws java.io.IOException,
java.io.EOFException,
java.lang.ClassNotFoundException
IOException,EOFException,ClassNotFoundExceptionjava.io.IOExceptionjava.io.EOFExceptionjava.lang.ClassNotFoundExceptionpublic void DOMExpand(java.io.InputStream inpstr)
throws java.io.IOException,
java.io.EOFException,
java.lang.ClassNotFoundException
inpstr - - java InputStreamIOException,EOFException,ClassNotFoundExceptionjava.io.IOExceptionjava.io.EOFExceptionjava.lang.ClassNotFoundExceptionpublic void DOMExpand(oracle.sql.BLOB blob)
throws java.sql.SQLException,
java.io.IOException,
java.io.EOFException,
java.lang.ClassNotFoundException
blob - - oracle.sql.BLOBSQLException,IOException,EOFException,ClassNotFoundExceptionjava.sql.SQLExceptionjava.io.IOExceptionjava.io.EOFExceptionjava.lang.ClassNotFoundExceptionpublic void DOMExpand(java.io.File inpBinfile,
java.io.File outpTxtfile)
throws java.io.IOException,
XMLParseException,
java.sql.SQLException,
java.lang.ClassNotFoundException
inpBinfile - - java file inpBinfileoutpTxtfile - - java file outpTxtfileIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionjava.sql.SQLExceptionjava.lang.ClassNotFoundExceptionpublic void SAXCompress(java.io.InputStream xmltext)
throws SAXException,
XMLParseException,
java.io.IOException
xmltext - - java InputStreamSAXException,XMLParseException,IOExceptionSAXExceptionXMLParseExceptionjava.io.IOExceptionpublic void SAXCompress(java.io.File inpTxtfile,
java.io.File outpBinfile)
throws java.io.IOException,
XMLParseException,
SAXException
inpTxtfile - - java file inpTxtfileoutpBinfile - - java file outpBinfileIOException,XMLParseException,SAXException,SQLExceptionjava.io.IOExceptionXMLParseExceptionSAXExceptionpublic void SAXCompress(java.lang.String xmltext)
throws SAXException,
XMLParseException,
java.io.IOException
xmltext - - java InputStreamSAXException,XMLParseException,IOExceptionSAXExceptionXMLParseExceptionjava.io.IOExceptionpublic float getCompPercent()