Skip to content
Snippets Groups Projects
Commit ae22060f authored by Jari-Matti Mäkelä's avatar Jari-Matti Mäkelä
Browse files

-

parent ea601ee5
Branches
Tags 1.2.1
No related merge requests found
Pipeline #75327 passed
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>pdfbox-benchmark</artifactId> <artifactId>pdfbox-benchmark</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<parent> <parent>
<groupId>fi.utu.tech</groupId> <groupId>fi.utu.tech</groupId>
<artifactId>pdfbox-suite</artifactId> <artifactId>pdfbox-suite</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
</parent> </parent>
<dependencies> <dependencies>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>pdfbox-gui</artifactId> <artifactId>pdfbox-gui</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<parent> <parent>
<groupId>fi.utu.tech</groupId> <groupId>fi.utu.tech</groupId>
<artifactId>pdfbox-suite</artifactId> <artifactId>pdfbox-suite</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
</parent> </parent>
<dependencies> <dependencies>
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>pdfbox-wrapper</artifactId> <artifactId>pdfbox-wrapper</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<parent> <parent>
<groupId>fi.utu.tech</groupId> <groupId>fi.utu.tech</groupId>
<artifactId>pdfbox-suite</artifactId> <artifactId>pdfbox-suite</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
</parent> </parent>
<dependencies> <dependencies>
......
...@@ -17,6 +17,8 @@ open class FileSource(val path: Path) : DataSource() { ...@@ -17,6 +17,8 @@ open class FileSource(val path: Path) : DataSource() {
constructor(file: File) : this(file.toPath()) constructor(file: File) : this(file.toPath())
override fun load(): ByteArray = Files.readAllBytes(path) override fun load(): ByteArray = Files.readAllBytes(path)
override fun toString() = "File $path"
} }
open class ResourceSource(val path: String, private val classDef: Class<*>) : DataSource() { open class ResourceSource(val path: String, private val classDef: Class<*>) : DataSource() {
...@@ -26,7 +28,11 @@ open class ResourceSource(val path: String, private val classDef: Class<*>) : Da ...@@ -26,7 +28,11 @@ open class ResourceSource(val path: String, private val classDef: Class<*>) : Da
catch (e: Exception) { catch (e: Exception) {
throw IOException("Java resource $path not found!") throw IOException("Java resource $path not found!")
} }
override fun toString() = "Resource $path"
} }
open class StreamSource(private val stream: InputStream) : DataSource() { open class StreamSource(private val stream: InputStream) : DataSource() {
override fun load() = stream.readAllBytes() override fun load() = stream.readAllBytes()
override fun toString() = "Unnamed stream"
} }
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>fi.utu.tech</groupId> <groupId>fi.utu.tech</groupId>
<artifactId>pdfbox-suite</artifactId> <artifactId>pdfbox-suite</artifactId>
<version>1.2.0</version> <version>1.2.1</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<properties> <properties>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<javafx.version>22</javafx.version> <javafx.version>22</javafx.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<pdfbox.version>3.0.2</pdfbox.version> <pdfbox.version>3.0.2</pdfbox.version>
<pdfboxwrapper.version>1.2.0</pdfboxwrapper.version> <pdfboxwrapper.version>1.2.1</pdfboxwrapper.version>
</properties> </properties>
<modules> <modules>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment