at.knowcenter.wag.egov.egiz.pdf
Class StringInfo

java.lang.Object
  extended by at.knowcenter.wag.egov.egiz.pdf.StringInfo
All Implemented Interfaces:
Serializable

public class StringInfo
extends Object
implements Serializable

Specifies a certain data area within the pdf.

Actually this is a byte range, which is used to hold the placeholder ranges for later replacement.

Author:
wprinz
See Also:
Serialized Form

Field Summary
protected  byte[] pdf
          The PDF document this range belongs to.
 int string_length
          The length of the range.
 int string_start
          The start offset of the range.
 
Constructor Summary
StringInfo()
           
 
Method Summary
 byte[] copyStringBytes()
          Copies the bytes of this range to a new byte array.
 String getString(String encoding)
          Converts the range into a String.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pdf

protected byte[] pdf
The PDF document this range belongs to.


string_start

public int string_start
The start offset of the range.


string_length

public int string_length
The length of the range.

Constructor Detail

StringInfo

public StringInfo()
Method Detail

copyStringBytes

public byte[] copyStringBytes()
Copies the bytes of this range to a new byte array.

Returns:
Returns the new byte array.

getString

public String getString(String encoding)
                 throws UnsupportedEncodingException
Converts the range into a String.

Returns:
Returns the String.
Throws:
UnsupportedEncodingException - Forwarded exception.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.