DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class SingleByteEncodingResource

java.lang.Object
  |
  +--com.cete.dynamicpdf.Resource
        |
        +--com.cete.dynamicpdf.text.SingleByteEncodingResource

public class SingleByteEncodingResource
extends Resource

Represents a single byte encoding resource.


Constructor Summary
SingleByteEncodingResource(long uid, byte[] data)
          Initializes a new instance of the SingleByteEncodingResource font class.
 
Method Summary
 void draw(DocumentWriter writer)
          Draws the encoder to the given DocumentWriter object.
 int getRequiredPdfObjects()
          Gets the number of PDF objects required by the single byte encoding.
 
Methods inherited from class com.cete.dynamicpdf.Resource
getUid, newUid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleByteEncodingResource

public SingleByteEncodingResource(long uid,
                                  byte[] data)
Initializes a new instance of the SingleByteEncodingResource font class.

Parameters:
uid - long unique ID of the encoder.
data - byte[] array containing the encoders output stream.
Method Detail

getRequiredPdfObjects

public int getRequiredPdfObjects()
Gets the number of PDF objects required by the single byte encoding.

Specified by:
getRequiredPdfObjects in class Resource
Returns:
int number of PDF objects required by the single byte encoding.

draw

public void draw(DocumentWriter writer)
Draws the encoder to the given DocumentWriter object.

Specified by:
draw in class Resource
Parameters:
writer - DocumentWriter to receive the encoder's output.
See Also:
DocumentWriter

DynamicPDF by ceTe Software

API Reference for DynamicPDF™ for Java generated on December 20, 2005
© Copyright 2005, ceTe Software