OOP MimeParser Version 3.5

com.bentofw.util
Class CheckPdfStrict

java.lang.Object
  extended by com.bentofw.util.CheckPdfStrict
All Implemented Interfaces:
BinaryChecker

public class CheckPdfStrict
extends java.lang.Object
implements BinaryChecker

One of the implementation of BinaryChecker. Check if the given binary contents matches PDF file or not.

This class depends on iText Java library. To use this class, please download it from:

It is the FREE Java library for PDF.

Since:
1.5
Author:
Jun Inamori
See Also:



Constructor Summary
CheckPdfStrict()
          Constructor.
 
Method Summary
 boolean checkBinary(byte[] bin)
          Returns true if the binary contents can be considered to match the PDF file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckPdfStrict

public CheckPdfStrict()
Constructor.

Method Detail

checkBinary

public boolean checkBinary(byte[] bin)
Returns true if the binary contents can be considered to match the PDF file. Otherwise, false.

Specified by:
checkBinary in interface BinaryChecker
Parameters:
bin - The binary contents
Returns:
true if the binary contents can be considered to match the PDF file. Otherwise, false.

OOP MimeParser Version 3.5

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.