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;
017
018/**
019 * 
020 * Appends the attachment file to an PDF.
021 */
022public interface FileAppender {
023   
024   /**
025    * Append to PDF
026    *
027    * @param appendable the appendable object
028    */
029   void append(AppendParameter appendable);
030
031   /**
032    * Returns specified priority of given implementation class.
033    *
034    * Priority value is being used when there are multiple FileAppender implementation
035    * found in the classpath. An implementation with the highest priority is used
036    * in that case.
037    *
038    * @return priority value
039    */
040   int getPriority();
041}