Streamable, StructuredDatapublic class GraphicsCharacterString extends AbstractGraphicsCoord
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field | Description |
|---|---|---|
protected static int |
MAX_STR_LEN |
Up to 255 bytes of character data
|
LOG, SF_CLASS, SF_HEADER_LENGTHcoords, relative| Constructor | Description |
|---|---|
GraphicsCharacterString(java.lang.String str,
int x,
int y,
CharacterSet charSet) |
Constructor (absolute positioning)
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getDataLength() |
Returns the data length of this structured field
|
java.lang.String |
toString() |
|
void |
writeToStream(java.io.OutputStream os) |
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
copySF, copySF, truncate, writeChunksToStream, writeObjectsaddCoords, isRelativegetNameprotected static final int MAX_STR_LEN
public GraphicsCharacterString(java.lang.String str,
int x,
int y,
CharacterSet charSet)
str - the character stringx - the x coordinatey - the y coordinatecharSet - the character setpublic int getDataLength()
getDataLength in interface StructuredDatagetDataLength in class AbstractGraphicsCoordpublic void writeToStream(java.io.OutputStream os)
throws java.io.IOException
writeToStream in interface StreamablewriteToStream in class AbstractGraphicsCoordos - the outputsteam streamjava.io.IOException - an I/O exception of some sort has occurred.public java.lang.String toString()
toString in class AbstractGraphicsCoordCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.