Class FormatDetector


  • public class FormatDetector
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FormatDetector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<Format> detect​(byte[] bytes)  
      static java.util.Optional<Format> detect​(java.io.InputStream in)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FormatDetector

        public FormatDetector()
    • Method Detail

      • detect

        public static java.util.Optional<Format> detect​(java.io.InputStream in)
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • detect

        public static java.util.Optional<Format> detect​(byte[] bytes)