PDF Clown
0.0.8

it.stefanochizzolini.clown.objects
Class PdfString

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObject
      extended by it.stefanochizzolini.clown.objects.PdfDataObject
          extended by it.stefanochizzolini.clown.objects.PdfDirectObject
              extended by it.stefanochizzolini.clown.objects.PdfAtomicObject<byte[]>
                  extended by it.stefanochizzolini.clown.objects.PdfString
All Implemented Interfaces:
Cloneable, Comparable<PdfDirectObject>
Direct Known Subclasses:
PdfDate, PdfTextString

public class PdfString
extends PdfAtomicObject<byte[]>

PDF string object [PDF:1.6:3.2.3].

A string object consists of a series of bytes.

String objects can be serialized in two ways:

Since:
0.0.6
Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Nested Class Summary
static class PdfString.SerializationModeEnum
          String serialization mode.
 
Constructor Summary
PdfString()
           
PdfString(byte[] value)
           
PdfString(byte[] value, PdfString.SerializationModeEnum serializationMode)
           
PdfString(String value)
           
PdfString(String value, PdfString.SerializationModeEnum serializationMode)
           
 
Method Summary
 Object clone(File context)
          Gets the clone of the object, registered inside the given file context.
 int compareTo(PdfDirectObject object)
           
 PdfString.SerializationModeEnum getSerializationMode()
          Gets the serialization mode.
 Object getValue()
          Gets the high-level representation of the value.
 void setSerializationMode(PdfString.SerializationModeEnum value)
           
 void setValue(Object value)
          Sets the high-level representation of the value.
 void writeTo(IOutputStream stream)
          Serializes the object to the given stream.
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfAtomicObject
clone, getRawValue, setRawValue, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfString

public PdfString()

PdfString

public PdfString(byte[] value)

PdfString

public PdfString(String value)

PdfString

public PdfString(byte[] value,
                 PdfString.SerializationModeEnum serializationMode)

PdfString

public PdfString(String value,
                 PdfString.SerializationModeEnum serializationMode)
Method Detail

clone

public Object clone(File context)
Description copied from class: PdfObject
Gets the clone of the object, registered inside the given file context.

Specified by:
clone in class PdfObject

compareTo

public int compareTo(PdfDirectObject object)
Specified by:
compareTo in interface Comparable<PdfDirectObject>
Specified by:
compareTo in class PdfDirectObject

getSerializationMode

public PdfString.SerializationModeEnum getSerializationMode()
Gets the serialization mode.


getValue

public Object getValue()
Description copied from class: PdfAtomicObject
Gets the high-level representation of the value.

Overrides:
getValue in class PdfAtomicObject<byte[]>

setSerializationMode

public void setSerializationMode(PdfString.SerializationModeEnum value)
See Also:
getSerializationMode()

setValue

public void setValue(Object value)
Description copied from class: PdfAtomicObject
Sets the high-level representation of the value.

Overrides:
setValue in class PdfAtomicObject<byte[]>

writeTo

public void writeTo(IOutputStream stream)
Description copied from class: PdfObject
Serializes the object to the given stream.

Specified by:
writeTo in class PdfObject

PDF Clown
0.0.8

Project home page

Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.