summaryrefslogtreecommitdiff
path: root/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-09-30 14:24:16 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-09-30 14:24:16 +0200
commit9a513d43b310f2e6283fa195a8aa11493a7dcb2c (patch)
tree2038e303e454004ed719cfebe2dfb554571b86b5 /pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java
parent96ba5fe6185cfdeb326ae3148ce88f299e41ef25 (diff)
downloadpdf-over-9a513d43b310f2e6283fa195a8aa11493a7dcb2c.tar.gz
pdf-over-9a513d43b310f2e6283fa195a8aa11493a7dcb2c.tar.bz2
pdf-over-9a513d43b310f2e6283fa195a8aa11493a7dcb2c.zip
kill off pdfover-signator
Diffstat (limited to 'pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java')
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java55
1 files changed, 0 insertions, 55 deletions
diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java
deleted file mode 100644
index d0fb6cfe..00000000
--- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright 2012 by A-SIT, Secure Information Technology Center Austria
- *
- * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by
- * the European Commission - subsequent versions of the EUPL (the "Licence");
- * You may not use this work except in compliance with the Licence.
- * You may obtain a copy of the Licence at:
- * http://joinup.ec.europa.eu/software/page/eupl
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the Licence is distributed on an "AS IS" basis,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the Licence for the specific language governing permissions and
- * limitations under the Licence.
- */
-package at.asit.pdfover.signator;
-
-//Imports
-import java.io.ByteArrayInputStream;
-import java.io.InputStream;
-
-/**
- * A DocumentSource using a byte[] to store the document content
- */
-public class ByteArrayDocumentSource implements DocumentSource {
-
- /**
- * Document content
- */
- protected byte[] data;
-
- /**
- * Constructor with byte[] content
- * @param data the document content
- */
- public ByteArrayDocumentSource(byte[] data) {
- this.data = data;
- }
-
- @Override
- public InputStream getInputStream() {
- return new ByteArrayInputStream(this.data);
- }
-
- @Override
- public int getLength() {
- return this.data.length;
- }
-
- @Override
- public byte[] getByteArray() {
- return this.data;
- }
-
-}