public class StreamValidationProcess extends AbstractProcess
Constructor and Description |
---|
StreamValidationProcess() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkDictionaryEntries(PreflightContext context,
COSStream streamObj)
Check dictionary entries.
|
protected void |
checkFilters(COSStream stream,
PreflightContext context)
This method checks if one of declared Filter is LZWdecode.
|
protected void |
checkStreamLength(PreflightContext context,
COSObject cObj) |
void |
validate(PreflightContext ctx) |
void |
validateStreamObject(PreflightContext context,
COSObject cObj) |
addFontError, addValidationError, addValidationErrors
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
public void validateStreamObject(PreflightContext context, COSObject cObj) throws ValidationException
ValidationException
protected void checkFilters(COSStream stream, PreflightContext context)
stream
- the stream to check.context
- the preflight context.protected void checkStreamLength(PreflightContext context, COSObject cObj) throws ValidationException
ValidationException
protected void checkDictionaryEntries(PreflightContext context, COSStream streamObj)
context
- the preflight context.streamObj
- the stream to check.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.