@Override /** * Call {@link BaseParser#parseCOSName()} and check the length of the name */ protected COSName parseCOSName() throws IOException { COSName result = super.parseCOSName(); if (result != null && result.getName().getBytes().length > MAX_NAME_SIZE) { addValidationError(new ValidationError(ERROR_SYNTAX_NAME_TOO_LONG, "Name too long: " + result.getName())); } return result; }
@Override /** * Call {@link BaseParser#parseCOSName()} and check the length of the name */ protected COSName parseCOSName() throws IOException { COSName result = super.parseCOSName(); if (result != null && result.getName().getBytes().length > MAX_NAME_SIZE) { addValidationError(new ValidationError(ERROR_SYNTAX_NAME_TOO_LONG, "Name too long: " + result.getName())); } return result; }
@Override /** * Call {@link BaseParser#parseCOSName()} and check the length of the name */ protected COSName parseCOSName() throws IOException { COSName result = super.parseCOSName(); if (result != null && result.getName().getBytes().length > MAX_NAME_SIZE) { addValidationError(new ValidationError(ERROR_SYNTAX_NAME_TOO_LONG, "Name too long: " + result.getName())); } return result; }