2 * Licensed to the Apache Software Foundation (ASF) under one or more
\r
3 * contributor license agreements. See the NOTICE file distributed with
\r
4 * this work for additional information regarding copyright ownership.
\r
5 * The ASF licenses this file to You under the Apache License, Version 2.0
\r
6 * (the "License"); you may not use this file except in compliance with
\r
7 * the License. You may obtain a copy of the License at
\r
9 * http://www.apache.org/licenses/LICENSE-2.0
\r
11 * Unless required by applicable law or agreed to in writing, software
\r
12 * distributed under the License is distributed on an "AS IS" BASIS,
\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
14 * See the License for the specific language governing permissions and
\r
15 * limitations under the License.
\r
17 package org.apache.pdfbox.pdmodel.common.filespecification;
\r
19 import org.apache.pdfbox.cos.COSBase;
\r
20 import org.apache.pdfbox.cos.COSString;
\r
23 * A file specification that is just a string.
\r
25 * @author <a href="mailto:ben@benlitchfield.com">Ben Litchfield</a>
\r
26 * @version $Revision: 1.2 $
\r
28 public class PDSimpleFileSpecification extends PDFileSpecification
\r
30 private COSString file;
\r
36 public PDSimpleFileSpecification()
\r
38 file = new COSString( "" );
\r
44 * @param fileName The file that this spec represents.
\r
46 public PDSimpleFileSpecification( COSString fileName )
\r
52 * This will get the file name.
\r
54 * @return The file name.
\r
56 public String getFile()
\r
58 return file.getString();
\r
62 * This will set the file name.
\r
64 * @param fileName The name of the file.
\r
66 public void setFile( String fileName )
\r
68 file = new COSString( fileName );
\r
72 * Convert this standard java object to a COS object.
\r
74 * @return The cos object that matches this Java object.
\r
76 public COSBase getCOSObject()
\r