Class ContentTypeDetectingInputStreamWrapper

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.BufferedInputStream
org.xhtmlrenderer.util.ContentTypeDetectingInputStreamWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

public class ContentTypeDetectingInputStreamWrapper extends BufferedInputStream
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 Details

  • Constructor Details

  • Method Details

    • isPdf

      public boolean isPdf()