public class PresentationTextData extends AbstractAFPObject implements PtocaConstants
The graphic characters are expected to conform to a coded font representation so that they can be translated from the code point in the object data to the character in the coded font. The units of measure for linear displacements are derived from the PresentationTextDescriptor or from the hierarchical defaults.
In addition to graphic character code points, Presentation Text data can contain embedded control sequences. These are strings of two or more bytes which signal an alternate mode of processing for the content of the current Presentation Text data.
The content for this object can be created using PtocaBuilder
.
AbstractAFPObject.Category, AbstractAFPObject.Type
log, SF_CLASS, SF_HEADER
Constructor and Description |
---|
PresentationTextData()
Default constructor for the PresentationTextData.
|
PresentationTextData(boolean controlInd)
Constructor for the PresentationTextData, the boolean flag indicate
whether the control sequence prefix should be set to indicate the start
of a new control sequence.
|
Modifier and Type | Method and Description |
---|---|
int |
getBytesAvailable()
Returns the number of data bytes still available in this object until it is full and a new
one has to be started.
|
protected java.io.OutputStream |
getOutputStream()
Returns the output stream the content data is written to.
|
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
copyChunks, copySF, copySF, truncate, writeChunksToStream, writeObjects
public PresentationTextData()
public PresentationTextData(boolean controlInd)
controlInd
- The control sequence indicator.public int getBytesAvailable()
protected java.io.OutputStream getOutputStream()
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
writeToStream
in interface Streamable
os
- the outputsteam streamjava.io.IOException
- an I/O exception of some sort has occurred.Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.