Constants.CHARSET, Constants.CONCAT, Constants.DBOPERATION, Constants.DBTYPE, Constants.HASHTYPE, Constants.HTTPCODE, Constants.HTTPMETHOD, Constants.MIMETYPE, Constants.OSTYPE, Constants.QUERYTYPE, Constants.REG, Constants.SPLITER, Constants.STATUS, Constants.TIMEFORMAT| 构造器和说明 |
|---|
ZLibUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
deflate(byte[] data)
将 byte[] 数组压缩成 byte[] 数组
|
static void |
deflate(byte[] data,
java.io.OutputStream outputStream)
将 byte[] 压缩后写入到输出流中
|
static byte[] |
inflate(byte[] data)
解压缩 byte[]
|
static byte[] |
inflate(java.io.InputStream inputStream)
从输入流中读取数据并返回解压后的 byte[]
|
buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, close, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, closeQuietly, contentEquals, contentEquals, contentEqualsIgnoreEOL, copy, copy, copy, copy, copy, copy, copy, copy, copy, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, copyLarge, lineIterator, lineIterator, lineIterator, read, read, read, read, read, readFully, readFully, readFully, readFully, readFully, readFully, readLines, readLines, readLines, readLines, skip, skip, skip, skipFully, skipFully, skipFully, toBufferedInputStream, toBufferedInputStream, toBufferedReader, toBufferedReader, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toByteArray, toCharArray, toCharArray, toCharArray, toCharArray, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toInputStream, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, toString, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeChunked, writeChunked, writeLines, writeLines, writeLines, writeLinespublic static byte[] deflate(byte[] data)
data - 待压缩的 byte[] 数组public static void deflate(byte[] data,
java.io.OutputStream outputStream)
data - 待压缩数据outputStream - 输出流public static byte[] inflate(byte[] data)
data - 待压缩的数据public static byte[] inflate(java.io.InputStream inputStream)
inputStream - 输入流Copyright © 2020. All Rights Reserved.