public class ContentTypeDetectingInputStreamWrapper extends BufferedInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
MAGIC_BYTES |
protected static byte[] |
MAGIC_BYTES_PDF |
protected static int |
MAX_MAGIC_BYTES |
in| Constructor and Description |
|---|
ContentTypeDetectingInputStreamWrapper(InputStream source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPdf() |
protected boolean |
streamStartsWithMagicBytes(byte[] bytes) |
available, close, mark, markSupported, read, read, reset, skipreadprotected static final int MAX_MAGIC_BYTES
protected final byte[] MAGIC_BYTES
protected static final byte[] MAGIC_BYTES_PDF
public ContentTypeDetectingInputStreamWrapper(InputStream source) throws IOException
IOExceptionCopyright © 2020. All rights reserved.