DynamicPDF by ceTe Software

com.cete.dynamicpdf.text
Class SingleByteEncodingResource

java.lang.Object
  extended by com.cete.dynamicpdf.Resource
      extended by com.cete.dynamicpdf.text.SingleByteEncodingResource

public class SingleByteEncodingResource
extends Resource

Represents a single byte encoding resource.

Licensing:
This class is a DynamicPDF Generator Community Edition feature.


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.
 ResourceType getResourceType()
          Gets the resource type.
 
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.

Overrides:
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

getResourceType

public ResourceType getResourceType()
Gets the resource type.

Overrides:
getResourceType in class Resource
Returns:
ResourceType for encoder.
See Also:
ResourceType

DynamicPDF by ceTe Software

API Reference for DynamicPDF v10.07 for Java generated on Aug 12, 2020
© Copyright 2020, ceTe Software