1 31 package org.pdfbox.pdmodel; 32 33 import java.io.IOException ; 34 35 import org.pdfbox.cos.COSBase; 36 import org.pdfbox.cos.COSDictionary; 37 import org.pdfbox.pdmodel.common.PDNameTreeNode; 38 import org.pdfbox.pdmodel.common.filespecification.PDComplexFileSpecification; 39 40 46 public class PDEmbeddedFilesNameTreeNode extends PDNameTreeNode 47 { 48 51 public PDEmbeddedFilesNameTreeNode() 52 { 53 super( PDComplexFileSpecification.class ); 54 } 55 56 61 public PDEmbeddedFilesNameTreeNode( COSDictionary dic ) 62 { 63 super( dic, PDComplexFileSpecification.class ); 64 } 65 66 69 protected Object convertCOSToPD( COSBase base ) throws IOException 70 { 71 COSBase destination = base; 72 return new PDComplexFileSpecification( (COSDictionary)destination ); 73 } 74 75 78 protected PDNameTreeNode createChildNode( COSDictionary dic ) 79 { 80 return new PDEmbeddedFilesNameTreeNode(dic); 81 } 82 } | Popular Tags |