導航:首頁 > 編程語言 > jbigjava

jbigjava

發布時間:2022-05-19 10:47:38

Ⅰ 如何解壓縮jbig位元組數組

是列印機的壓縮格式
JBIG (Joint Bi-level Image Experts Group),是由lossless image compession,的基礎上特用於傳真機的一種壓縮技術。數據壓縮的演繹法眾多,其中使用於圖像壓縮的演繹法可粗分為兩類,第一類就是lossless image compession,是一種壓縮再解壓縮後不會產生任何誤差的演繹法。第二類則為lossy compression是一種壓縮再解壓縮後產生誤差的演繹法。其中JBIG脫身於第一類lossless image compession,而JPEG(Joint Picture Expert Group)則是由第二類lossy compression發展而來的。這里需要說明的是,MH、MR、MMR、JBIG這幾種壓縮系統都是針對黑白文稿的壓縮系統,而JPEG則是為了適應傳真彩色文稿的需求而產生的。運用lossy compression來做圖像壓縮不但可以獲得不錯的壓縮比,也可以兼顧不錯的品質。

Ⅱ 如何使用java從excel表提取內容

以下是使用java從excel表提取內容的程序 -
import java.io.File;import java.io.FileInputStream;import org.apache.tika.metadata.Metadata;import org.apache.tika.parser.ParseContext;import org.apache.tika.parser.microsoft.ooxml.OOXMLParser;import org.apache.tika.sax.BodyContentHandler;public class ExtractContentFromExcel {
public static void main(String args[]) throws Exception {

// detecting the file type
BodyContentHandler handler = new BodyContentHandler();

Metadata metadata = new Metadata();
FileInputStream inputstream = new FileInputStream(new File("excelExample.xlsx"));

ParseContext pcontext = new ParseContext();

// OOXml parser
OOXMLParser msofficeparser = new OOXMLParser();

msofficeparser.parse(inputstream, handler, metadata, pcontext);
System.out.println("Contents of the document:" + handler.toString());
System.out.println("Metadata of the document:");
String[] metadataNames = metadata.names();

for (String name : metadataNames) {
System.out.println(name + ": " + metadata.get(name));
}
}}Java

原ODF文件:excelExample.xlsx 的內容如下 -

執行上面示例代碼,得到以下結果 -
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/F:/worksp/javaexamples/libs/tika_libs/tika-app-1.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/worksp/javaexamples/libs/tika_libs/tika-server-1.16.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
九月 27, 2017 5:15:47 上午 org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
警告: JBIG2ImageReader not loaded. jbig2 files will be ignored
See http://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
for optional dependencies.
TIFFImageWriter not loaded. tiff files will not be processed
See http://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
for optional dependencies.
J2KImageReader not loaded. JPEG2000 files will not be processed.
See http://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
for optional dependencies.

九月 27, 2017 5:15:47 上午 org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
警告: org.xerial's sqlite-jdbc is not loaded.
Please provide the jar on your classpath to parse sqlite files.
See tika-parsers/pom.xml for the correct version.
Contents of the document:Sheet1
編號 姓名 年齡 工作
1001 王傳大 22 Java軟體開發
1002 李小雙 29 項目經理
1020 張在傳 28 人事經理

Sheet2

Sheet3

Metadata of the document:
date: 2017-09-27T09:15:38Z
meta:creation-date: 2017-09-27T09:13:50Z
extended-properties:Application: Microsoft Excel
Creation-Date: 2017-09-27T09:13:50Z
dcterms:created: 2017-09-27T09:13:50Z
Last-Modified: 2017-09-27T09:15:38Z
dcterms:modified: 2017-09-27T09:15:38Z
Last-Save-Date: 2017-09-27T09:15:38Z
protected: false
meta:save-date: 2017-09-27T09:15:38Z
Application-Name: Microsoft Excel
modified: 2017-09-27T09:15:38Z
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
custom:KSOProctBuildVer: 2052-10.1.0.6489Shell

易百教程移動端:請掃描本頁面底部(右側)二維碼並關注微信公眾號,回復:"教程" 選擇相關教程閱讀或直接訪問:http://m.yii.com 。

閱讀全文

與jbigjava相關的資料

熱點內容
javastringblob 瀏覽:295
王瑤pdf 瀏覽:857
開掛軟體顯示請連接伺服器地址 瀏覽:914
蘋果怎麼下載安卓倩女 瀏覽:584
vip藍光視頻解析網站源碼 瀏覽:940
伺服器ps1ps2是什麼意思 瀏覽:858
seo命令 瀏覽:866
可代理雲伺服器 瀏覽:973
本地伺服器連接失敗是什麼意思 瀏覽:866
華為平板如何將應用app分身 瀏覽:897
微信顯示無法連接到伺服器1302什麼意思 瀏覽:625
java有哪些函數 瀏覽:752
隨遇app怎麼收費 瀏覽:203
如何將家用電腦做伺服器外網 瀏覽:805
命令方塊如何設置有條件 瀏覽:585
基於雲伺服器的井下監控裝置 瀏覽:786
程序員頸椎變形 瀏覽:656
android登陸伺服器 瀏覽:426
我的世界為什麼顯示無法連接至伺服器 瀏覽:979
懷舊服燃燒的遠征在哪個文件夾 瀏覽:359