public static int[] checkObjectStart(PdfTokenizer lineTokenizer){
  try {
    lineTokenizer.seek(0);
    if (!lineTokenizer.nextToken() || lineTokenizer.getTokenType() != TokenType.Number)     return null;
    int num=lineTokenizer.getIntValue();
    if (!lineTokenizer.nextToken() || lineTokenizer.getTokenType() != TokenType.Number)     return null;
    int gen=lineTokenizer.getIntValue();
    if (!lineTokenizer.nextToken())     return null;
    if (!Arrays.equals(Obj,lineTokenizer.getByteContent()))     return null;
    return new int[]{num,gen};
  }
 catch (  Exception ioe) {
  }
  return null;
}

public static int [ ] checkObjectStart ( PdfTokenizer lineTokenizer ) { try { lineTokenizer . seek ( 0 ) ; if ( ! lineTokenizer . nextToken ( ) || lineTokenizer . getTokenType ( ) != TokenType . Number ) return null ; int num = lineTokenizer . getIntValue ( ) ; if ( ! lineTokenizer . nextToken ( ) || lineTokenizer . getTokenType ( ) != TokenType . Number ) return null ; int gen = lineTokenizer . getIntValue ( ) ; if ( ! lineTokenizer . nextToken ( ) ) return null ; if ( ! Arrays . equals ( Obj , lineTokenizer . getByteContent ( ) ) ) return null ; return new int [ ] { num , gen } ; } catch ( Exception ioe ) { } return null ; }
check whether line starts with object declaration .
