at.knowcenter.wag.exactparser.parsing
Class PDFNames

java.lang.Object
  extended by at.knowcenter.wag.exactparser.parsing.PDFNames

public abstract class PDFNames
extends Object

Abstract class that contains several frequently used PDF constants.

The PDF specification partitions the character set (ASCII) into three groups:

Newlines consist per default of CR and LF, but also LF and even CR alone are allowed. It seems that all variations of newlines may exist within a single document.

Author:
wprinz

Field Summary
static byte COMMENT
           
static byte DELIMITER_ARRAY_CLOSE
           
static byte DELIMITER_ARRAY_OPEN
           
static byte[] DELIMITER_CHARACTERS
           
static byte DELIMITER_CURLY_CLOSE
           
static byte DELIMITER_CURLY_OPEN
           
static byte DELIMITER_HEXSTRING_CLOSE
           
static byte DELIMITER_HEXSTRING_OPEN
           
static byte DELIMITER_NAME
           
static byte DELIMITER_STRING_CLOSE
           
static byte DELIMITER_STRING_OPEN
           
static byte[] DICT_END_STR
           
static byte[] DICT_START_STR
           
static byte[] ENDOBJ_STR
           
static byte[] ENDSTREAM_STR
           
static byte[] EOF_STR
           
static byte[] FALSE_STR
           
static byte[] INFO_STR
           
static byte[] LENGTH_STR
           
static byte[] NULL_STR
           
static byte[] OBJ_STR
           
static String PDF_STANDARD_ENCODING
          The standard encoding of PDF tokens and names.
static byte PDF_VERSION_SEPARATOR
           
static byte[] PDF_VERSION_STR
           
static byte[] PREV_STR
           
static byte[] REFERENCE_STR
           
static byte[] ROOT_STR
           
static byte[] SIZE_STR
           
static byte[] STARTXREF_STR
           
static byte[] STREAM_STR
           
static byte[] TRAILER_STR
           
static byte[] TRUE_STR
           
static byte[] WHITESPACE_CHARACTERS
           
static byte WHITESPACE_CR
           
static byte WHITESPACE_FF
           
static byte WHITESPACE_HT
           
static byte WHITESPACE_LF
           
static byte WHITESPACE_NUL
           
static byte WHITESPACE_SP
           
static byte[] XREF_STR
           
 
Constructor Summary
PDFNames()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDF_STANDARD_ENCODING

public static final String PDF_STANDARD_ENCODING
The standard encoding of PDF tokens and names.

PDF is usually an 8 bit format. Binary data etc. can be saves just as it is. Nevertheless all PDF tokens ('xref', 'obj', etc.) and PDF Names ('/Size', '/Pages', '/Type', etc.) must be in 7 bit ASCII US encoding.

Therefor, whenever using Java Strings to convert e.g. numbers to such PDF tokens use this encoding constant.

The same applies for PDF token/name byte arrays that are retransfromed to Java Strings.

See Also:
Constant Field Values

WHITESPACE_NUL

public static final byte WHITESPACE_NUL
See Also:
Constant Field Values

WHITESPACE_HT

public static final byte WHITESPACE_HT
See Also:
Constant Field Values

WHITESPACE_LF

public static final byte WHITESPACE_LF
See Also:
Constant Field Values

WHITESPACE_FF

public static final byte WHITESPACE_FF
See Also:
Constant Field Values

WHITESPACE_CR

public static final byte WHITESPACE_CR
See Also:
Constant Field Values

WHITESPACE_SP

public static final byte WHITESPACE_SP
See Also:
Constant Field Values

WHITESPACE_CHARACTERS

public static final byte[] WHITESPACE_CHARACTERS

COMMENT

public static final byte COMMENT
See Also:
Constant Field Values

PDF_VERSION_STR

public static final byte[] PDF_VERSION_STR

PDF_VERSION_SEPARATOR

public static final byte PDF_VERSION_SEPARATOR
See Also:
Constant Field Values

DELIMITER_STRING_OPEN

public static final byte DELIMITER_STRING_OPEN
See Also:
Constant Field Values

DELIMITER_STRING_CLOSE

public static final byte DELIMITER_STRING_CLOSE
See Also:
Constant Field Values

DELIMITER_HEXSTRING_OPEN

public static final byte DELIMITER_HEXSTRING_OPEN
See Also:
Constant Field Values

DELIMITER_HEXSTRING_CLOSE

public static final byte DELIMITER_HEXSTRING_CLOSE
See Also:
Constant Field Values

DELIMITER_ARRAY_OPEN

public static final byte DELIMITER_ARRAY_OPEN
See Also:
Constant Field Values

DELIMITER_ARRAY_CLOSE

public static final byte DELIMITER_ARRAY_CLOSE
See Also:
Constant Field Values

DELIMITER_CURLY_OPEN

public static final byte DELIMITER_CURLY_OPEN
See Also:
Constant Field Values

DELIMITER_CURLY_CLOSE

public static final byte DELIMITER_CURLY_CLOSE
See Also:
Constant Field Values

DELIMITER_NAME

public static final byte DELIMITER_NAME
See Also:
Constant Field Values

DELIMITER_CHARACTERS

public static final byte[] DELIMITER_CHARACTERS

XREF_STR

public static final byte[] XREF_STR

TRAILER_STR

public static final byte[] TRAILER_STR

STARTXREF_STR

public static final byte[] STARTXREF_STR

EOF_STR

public static final byte[] EOF_STR

OBJ_STR

public static final byte[] OBJ_STR

ENDOBJ_STR

public static final byte[] ENDOBJ_STR

DICT_START_STR

public static final byte[] DICT_START_STR

DICT_END_STR

public static final byte[] DICT_END_STR

STREAM_STR

public static final byte[] STREAM_STR

ENDSTREAM_STR

public static final byte[] ENDSTREAM_STR

NULL_STR

public static final byte[] NULL_STR

TRUE_STR

public static final byte[] TRUE_STR

FALSE_STR

public static final byte[] FALSE_STR

REFERENCE_STR

public static final byte[] REFERENCE_STR

SIZE_STR

public static final byte[] SIZE_STR

PREV_STR

public static final byte[] PREV_STR

ROOT_STR

public static final byte[] ROOT_STR

INFO_STR

public static final byte[] INFO_STR

LENGTH_STR

public static final byte[] LENGTH_STR
Constructor Detail

PDFNames

public PDFNames()


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