index.html
来自「java实现的xml压缩算法」· HTML 代码 · 共 33 行
HTML
33 行
<html>
<head>
<title>XML GZip compression utility classes</title>
<style>
pre {
margin: 0.5em;
background-color: rgb(230,230,255);
padding: 0.5em;
}
</style>
</head>
<body>
<h1>XML GZip compression utility classes</h1>
<p>
This is a small set of Java utility classes that makes it easy to parse/produce gzip-compressed XML. The code is in the public domain.
<ul>
<li><a href="gzipxml.20030830.zip">Download ver.20030830</a>
<li><a href="javadoc/index.html">Browse javadoc</a>
</ul>
<h2>Usage</h2>
<p>
<code>GZipStreamSource</code> and <code>GZipStreamResult</code> can be used where you can use <code>StreamSource</code> and <code>StreamResult</code>. Thus these classes can be used to enable gzip support for things like XSLT, JAXB, dom4j, and JDOM. For example, to use gzip compressed stream as an input to XSLT, you could write:
<pre>
Transformer t = ...;
t.transform( new GZipStreamSource(new File("input.xml")), new StreamResult(System.out) );
</pre>
<p>
Another helper class in this package is <code>GZipOutputStream</code>, a <code>java.util.GZIPOutputStream</code> replacement that allows you to specify the compression level. This can be used for example to reduce the overhead of gzip compression at the server side.
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?