public PDMetadata(PDDocument doc,
InputStream str,
boolean filtered) throws IOException {
super( doc, str, filtered );
getStream().setName( "Type", "Metadata" );
getStream().setName( "Subtype", "XML" );
}
Constructor. Reads all data from the input stream and embeds it into the
document, this will close the InputStream. Parameters:
doc - The document that will hold the stream.
str - The stream parameter.
filtered - True if the stream already has a filter applied.
Throws:
IOException - If there is an error creating the stream in the document.
|