org.pdfbox.examples

Class AbstractExample

Known Direct Subclasses:
SetField

public abstract class AbstractExample
extends java.lang.Object

A simple class which has some methods used by all examples.
Version:
$Revision: 1.4 $
Author:
Ben Litchfield

Method Summary

void
close(InputStream stream)
Close the stream.
void
close(OutputStream stream)
Close the stream.
void
close(COSDocument doc)
Close the document.
static void
close(COSWriter writer)
Close the writer.
void
close(PDDocument doc)
Close the document.

Method Details

close

public void close(InputStream stream)
            throws IOException
Close the stream.
Parameters:
stream - The stream to close.

close

public void close(OutputStream stream)
            throws IOException
Close the stream.
Parameters:
stream - The stream to close.

close

public void close(COSDocument doc)
            throws IOException
Close the document.
Parameters:
doc - The doc to close.

close

public static void close(COSWriter writer)
            throws IOException
Close the writer.
Parameters:
writer - The writer to close.

close

public void close(PDDocument doc)
            throws IOException
Close the document.
Parameters:
doc - The doc to close.