You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2021/06/29 20:13:30 UTC

[tika] branch branch_1x updated: TIKA-3460 -- add missing properties files for jaiimageio-core

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_1x
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/branch_1x by this push:
     new 74c5e5a  TIKA-3460 -- add missing properties files for jaiimageio-core
74c5e5a is described below

commit 74c5e5a8e934f4adc23cdf3a696021667663dbce
Author: tallison <ta...@apache.org>
AuthorDate: Tue Jun 29 16:13:12 2021 -0400

    TIKA-3460 -- add missing properties files for jaiimageio-core
---
 tika-parsers/pom.xml                               |  1 +
 .../resources/com/github/jaiimageio/README.txt     |  3 +++
 .../com/github/jaiimageio/impl/common/properties   | 18 +++++++++++++
 .../github/jaiimageio/impl/plugins/bmp/properties  | 30 ++++++++++++++++++++++
 .../github/jaiimageio/impl/plugins/clib/properties | 16 ++++++++++++
 .../github/jaiimageio/impl/plugins/jpeg/properties | 18 +++++++++++++
 .../github/jaiimageio/impl/plugins/png/properties  | 18 +++++++++++++
 .../github/jaiimageio/impl/plugins/pnm/properties  | 24 +++++++++++++++++
 .../github/jaiimageio/impl/plugins/raw/properties  | 20 +++++++++++++++
 .../github/jaiimageio/impl/plugins/tiff/properties | 14 ++++++++++
 .../github/jaiimageio/impl/plugins/wbmp/properties | 24 +++++++++++++++++
 .../com/github/jaiimageio/plugins/bmp/properties   | 14 ++++++++++
 12 files changed, 200 insertions(+)

diff --git a/tika-parsers/pom.xml b/tika-parsers/pom.xml
index b2b88ff..6ef2169 100644
--- a/tika-parsers/pom.xml
+++ b/tika-parsers/pom.xml
@@ -962,6 +962,7 @@
         <configuration>
           <excludes>
             <exclude>src/main/java/org/apache/tika/parser/txt/Charset*.java</exclude>
+            <exclude>src/main/resources/com/github/jaiimageio/**</exclude>
             <exclude>src/test/resources/test-documents/**</exclude>
             <exclude>src/test/resources/org/apache/tika/parser/recognition/*.bin</exclude>
             <exclude>src/test/resources/META-INF/services/org.apache.tika.parser.Parser</exclude>
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/README.txt b/tika-parsers/src/main/resources/com/github/jaiimageio/README.txt
new file mode 100644
index 0000000..49609cb
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/README.txt
@@ -0,0 +1,3 @@
+These files were copied from jai-imageio-core (https://github.com/jai-imageio/jai-imageio-core)
+because they weren't included in the jar as least as of 1.4.0. See TIKA-3460 and
+https://github.com/jai-imageio/jai-imageio-core/issues/57
\ No newline at end of file
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/common/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/common/properties
new file mode 100644
index 0000000..f99f1ad
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/common/properties
@@ -0,0 +1,18 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:24 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.common
+
+ImageUtil0=The supplied Raster does not represent a binary data set.
+ImageUtil1=The provided sample model is null.
+ImageUtil2=The provided image cannot be encoded using:
+SimpleRenderedImage0=The provided region doesn't intersect with the image bounds.
+
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/bmp/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/bmp/properties
new file mode 100644
index 0000000..1598aed
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/bmp/properties
@@ -0,0 +1,30 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:26 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.bmp
+
+BMPImageReader0=Only one image exists in the stream.
+BMPImageReader1=Invalid magic value for BMP file.
+BMPImageReader2=Invalid compression specified in BMP stream.
+BMPImageReader3=New BMP version not implemented yet.
+BMPImageReader4=No ImageIO-style reader is found for
+BMPImageReader5=Input has not been set.
+BMPImageWriter0=Output is not an ImageOutputStream.
+BMPImageWriter1=The image region to be encoded is empty.
+BMPImageWriter2=Only 1 or 3 band image is encoded.
+BMPImageWriter3=The maximum pixel size should be 32.
+BMPImageWriter4=Only version 3 is supported.
+BMPImageWriter5=No ImageIO-style writer is found for
+BMPImageWriter6=Compression type BI_BITFIELDS should be used for 16 bpp or 32 bpp or 32 bpp images only.
+BMPImageWriter7=Output has not been set.
+BMPImageWriter8=Image is null!
+BMPMetadata0=The provided metadata format isn't recognized.
+BMPMetadata1=Metadata is read-only.
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/clib/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/clib/properties
new file mode 100644
index 0000000..ed43f5a
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/clib/properties
@@ -0,0 +1,16 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:28 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.clib
+
+Generic0=Unsupported data type
+CLibImageReader0=Parameter may not be null.
+CLibImageWriter0=Unsupported data depth
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/jpeg/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/jpeg/properties
new file mode 100644
index 0000000..c4643c0
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/jpeg/properties
@@ -0,0 +1,18 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:30 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.jpeg
+
+CLibJPEGImageReader0=Decoder cannot decode input.
+
+CLibJPEGImageWriteParam0=Minimum useful
+CLibJPEGImageWriteParam1=Visually lossless
+CLibJPEGImageWriteParam2=Maximum useful
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/png/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/png/properties
new file mode 100644
index 0000000..bc91cc2
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/png/properties
@@ -0,0 +1,18 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.2 $
+# $Date: 2005/05/11 00:09:34 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.png
+
+CLibPNGImageReader0=Decoder cannot decode input.
+
+CLibPNGImageWriteParam0=Best Compression
+CLibPNGImageWriteParam1=Best Speed
+CLibPNGImageWriteParam2=No Compression
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/pnm/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/pnm/properties
new file mode 100644
index 0000000..a4bb2d8
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/pnm/properties
@@ -0,0 +1,24 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:41 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.pnm
+
+PNMImageReader0=What in the stream isn't a PNM image.
+PNMImageReader1=Only support to decode the first image in PNM stream.
+PNMImageWriter0=The provided output is not an ImageOutputStream.
+PNMImageWriter1=The image region to be encoded is empty.
+PNMImageWriter2=Wrong color index.
+PNMImageWriter3=Cannot encode this image.
+PNMImageWriter4=Only byte/short/ushort/int types are supported.
+PNMMetadata0=The provided metadata format is null.
+PNMMetadata1=The provided metadata format isn't recognized.
+PNMMetadata2=The tree to be merged is null.
+PNMMetadata3=Invalid node
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/raw/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/raw/properties
new file mode 100644
index 0000000..3afc000
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/raw/properties
@@ -0,0 +1,20 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:43 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.raw
+
+RawImageReader0=Only one image exists in the stream.
+RawImageWriteParam0=MODE_EXPLICIT is not supported.
+RawImageWriter0=Output is not an ImageOutputStream.
+RawImageWriter1=The image region to be encoded is empty.
+RawImageWriter2=The provided ImageWriteParam should be a RawImageWriteParam
+RawRenderedImage0=The provided tile grid position is out of range.
+RawRenderedImage1=Unsupported sample model.
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/tiff/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/tiff/properties
new file mode 100644
index 0000000..2ff5233
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/tiff/properties
@@ -0,0 +1,14 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:51 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.tiff
+
+TIFFDeflateDecompressor0=Error inflating data.
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/wbmp/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/wbmp/properties
new file mode 100644
index 0000000..c93743a
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/impl/plugins/wbmp/properties
@@ -0,0 +1,24 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:52 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.impl.plugins.wbmp
+
+WBMPImageReader0=Only one image exists in the stream.
+WBMPImageReader1=Input has not been set.
+WBMPImageReader2=Bad WBMP header.
+WBMPImageWriter0=Output is not an ImageOutputStream.
+WBMPImageWriter1=The image region to be encoded is empty.
+WBMPImageWriter2=Only integral single-band bilevel image is supported.
+WBMPImageWriter3=Output has not been set.
+WBMPImageWriter4=Image is null!
+WBMPMetadata0=The provided metadata format isn't recognized.
+WBMPMetadata1=Metadata is read-only.
+
diff --git a/tika-parsers/src/main/resources/com/github/jaiimageio/plugins/bmp/properties b/tika-parsers/src/main/resources/com/github/jaiimageio/plugins/bmp/properties
new file mode 100644
index 0000000..95057f4
--- /dev/null
+++ b/tika-parsers/src/main/resources/com/github/jaiimageio/plugins/bmp/properties
@@ -0,0 +1,14 @@
+#
+# $RCSfile: properties,v $
+#
+# Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Use is subject to license terms.
+#
+# $Revision: 1.1 $
+# $Date: 2005/02/11 05:01:15 $
+# $State: Exp $
+#
+# Internationalization file for com.github.jaiimageio.plugins.bmp
+
+BMPImageWriteParam0=Only versions 2-5 are supported.