|
Gnostice PDFOne
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gnostice.pdfone.PdfWriter
For internal use only.
This class is used in conjunction with theDo not use this class anymore for creating new PDF documents. Starting with v3.5.2, new-document creation capabilities are available in
PdfDocument
class instelf. The documentation provided here is only to support old user code.
PdfDocument
class to create new PDF documents. PdfWriter
does
not have a default constructor and instead has methods to create
objects with:
pathname
of a file,File
object,ByteArrayOutputStream
object,FileOutputStream
object, orOutputStream
object
PdfDocument
Field Summary |
Method Summary | |
void |
dispose()
Closes all I/O streams associated this PdfWriter . |
static PdfWriter |
fileStreamWriter(FileOutputStream fos)
Returns a new PdfWriter object created with
specified FileOutputStream object. |
static PdfWriter |
fileWriter(File pdfFile)
Returns a new PdfWriter object created with
specified File object. |
static PdfWriter |
fileWriter(String fileName)
Returns a new PdfWriter object created with
file specified by its pathname. |
static PdfWriter |
memoryWriter(ByteArrayOutputStream baos)
Returns a new PdfWriter object created with
specified ByteArrayOutputStream object. |
static PdfWriter |
streamWriter(OutputStream os)
Returns a new PdfWriter created with specified
OutputStream object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static PdfWriter memoryWriter(ByteArrayOutputStream baos)
PdfWriter
object created with
specified ByteArrayOutputStream
object.
baos
- ByteArrayOutputStream
object with
which the new PdfWriter
is to be
created
PdfWriter
objectpublic static PdfWriter fileWriter(File pdfFile) throws IOException
PdfWriter
object created with
specified File
object.
pdfFile
- File
object with which the new
PdfWriter
is to be created
PdfWriter
object
IOException
- if an I/O error occurs.public static PdfWriter fileWriter(String fileName) throws IOException
PdfWriter
object created with
file specified by its pathname.
fileName
- pathname of the file with which the new
PdfWriter
object is to be created
PdfWriter
object
IOException
- if an I/O error occurs.public static PdfWriter fileStreamWriter(FileOutputStream fos)
PdfWriter
object created with
specified FileOutputStream
object.
fos
- FileOutputStream
object with which
the new PdfWriter
object is to be
created
PdfWriter
objectpublic static PdfWriter streamWriter(OutputStream os)
PdfWriter
created with specified
OutputStream
object.
os
- OutputStream
object with which the
new PdfWriter
object is to be created
PdfWriter
objectpublic void dispose() throws IOException
PdfWriter
.
IOException
- if an I/O error occurs.
|
Pro. Ed. v5.0.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |