org.pdfbox.examples
Class AbstractExample
java.lang.Object
org.pdfbox.examples.AbstractExample
public abstract class AbstractExample
extends java.lang.Object
A simple class which has some methods used by all examples.
close
public void close(InputStream stream)
throws IOException
Close the stream.
stream
- The stream to close.
close
public void close(OutputStream stream)
throws IOException
Close the stream.
stream
- The stream to close.
close
public void close(COSDocument doc)
throws IOException
Close the document.
close
public static void close(COSWriter writer)
throws IOException
Close the writer.
writer
- The writer to close.
close
public void close(PDDocument doc)
throws IOException
Close the document.