org.foray.pdf.object
Class PDFEncoding

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFEncoding

public class PDFEncoding
extends PDFObject

Class representing an /Encoding object. Encodings are specified on page 213 and onwards of the PDF 1.3 spec.


Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFEncoding(PDFDocument doc, org.axsl.ps.Encoding encoding)
          Constructor.
 
Method Summary
 org.axsl.ps.Encoding getEncoding()
          Returns the underlying encoding.
 String getName()
          Return the name of the underlying encoding.
 String pdfReference()
          The String used to reference this object within the PDF.
 String toPDF()
          Generates the PDF text necessary to represent the object, returning it as a String.
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFEncoding

public PDFEncoding(PDFDocument doc,
                   org.axsl.ps.Encoding encoding)
Constructor. Creates the /Encoding object.

Parameters:
doc - The parent PDF document.
encoding - The encoding instance that is being wrapped.
Method Detail

getEncoding

public org.axsl.ps.Encoding getEncoding()
Returns the underlying encoding.

Returns:
The underlying encoding.

getName

public String getName()
Return the name of the underlying encoding.

Returns:
The name of the underlying encoding.

pdfReference

public String pdfReference()
Description copied from class: PDFObject
The String used to reference this object within the PDF.

Overrides:
pdfReference in class PDFObject
Returns:
The String used to reference this object within the PDF.

toPDF

public String toPDF()
Description copied from class: PDFObject
Generates the PDF text necessary to represent the object, returning it as a String.

Returns:
The PDF text necessary to represent the object.


Copyright © 2017. All rights reserved.