4445464748495051
if (id == -1) { id = ((IntegerNode) value).getIntValue(); } else if (version == -1) { version = ((IntegerNode) value).getIntValue(); } else { throw new PDFParseException("too many objects for a reference"); } }
454647484950515253
public void acceptValue(Object value) { if (value instanceof Number) { this.value = new Double(((Number) value).doubleValue()); } else { throw new PDFParseException( "Cannot pass a non Numerical value to a NumberNode"); } }
574575576577578579580581582583584
continue; } // if we get here then no one else reckoned it was the start // of anything! throw new PDFParseException("Unknown delimiter " + ((char) curr)); } // fi !ws (whitespace) // tidy up before the 'for' starts again... } // end of for loop
public void acceptValue(Object value) { if (value instanceof Boolean) { this.value = (Boolean) value; } else { throw new PDFParseException( "Cannot pass a non Boolean value to a BooleanNode"); } }
public void acceptValue(Object value) { if (value instanceof Integer) { this.value = (Integer) value; } else { throw new PDFParseException( "Cannot pass a non Numerical value to an IntegerNode"); } }