java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.xhtmlrenderer.util.ContentTypeDetectingInputStreamWrapper
- All Implemented Interfaces:
Closeable,AutoCloseable
This class wraps an input stream and detects if it contains certain content using "magic numbers".
...
currently only pdf detection is implemented
- Author:
- mwyraz
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.BufferedInputStream
available, close, mark, markSupported, read, read, reset, skipMethods inherited from class java.io.FilterInputStream
readMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
MAX_MAGIC_BYTES
protected static final int MAX_MAGIC_BYTES- See Also:
-
-
Constructor Details
-
ContentTypeDetectingInputStreamWrapper
- Throws:
IOException
-
-
Method Details
-
isPdf
public boolean isPdf()
-