001/*
002 * Copyright 2014 Konik.io
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *  http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package io.konik.harness.appender;
017
018import java.io.InputStream;
019import java.io.OutputStream;
020
021import io.konik.harness.AppendParameter;
022
023/**
024 * A Default Append Parameter.
025 */
026public class DefaultAppendParameter implements AppendParameter {
027
028   InputStream inputPdf;
029   InputStream attachmentFile;
030   OutputStream resultingPdf;
031   String zugferdVersion;
032   String zugferdConformanceLevel;
033
034   /**
035    * Instantiates a new default append parameter.
036    *
037    * @param inputPdf the input pdf
038    * @param attachmentFile the attachment file
039    * @param resultingPdf the resulting pdf
040    * @param zugferdVersion the zugferd version
041    * @param zugferdConformanceLevel the zugferd conformance level
042    */
043   public DefaultAppendParameter(InputStream inputPdf, InputStream attachmentFile, OutputStream resultingPdf,
044         String zugferdVersion, String zugferdConformanceLevel) {
045      super();
046      this.inputPdf = inputPdf;
047      this.attachmentFile = attachmentFile;
048      this.resultingPdf = resultingPdf;
049      this.zugferdVersion = zugferdVersion;
050      this.zugferdConformanceLevel = zugferdConformanceLevel;
051   }
052
053   @Override
054   public InputStream inputPdf() {
055      return inputPdf;
056   }
057
058   @Override
059   public OutputStream resultingPdf() {
060      return resultingPdf;
061   }
062
063   @Override
064   public InputStream attachmentFile() {
065      return attachmentFile;
066   }
067
068   @Override
069   public String zugferdVersion() {
070      return zugferdVersion;
071   }
072
073   @Override
074   public String zugferdConformanceLevel() {
075      return zugferdConformanceLevel;
076   }
077
078}