Class DefaultShader.ZipHeaderPeekInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    DefaultShader

    private static class DefaultShader.ZipHeaderPeekInputStream
    extends java.io.PushbackInputStream
    InputStream that can peek ahead at zip header bytes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static int HEADER_LEN  
      private static byte[] ZIP_HEADER  
      • Fields inherited from class java.io.PushbackInputStream

        buf, pos
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected ZipHeaderPeekInputStream​(java.io.InputStream in)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasZipHeader()  
      • Methods inherited from class java.io.PushbackInputStream

        available, close, mark, markSupported, read, read, reset, skip, unread, unread, unread
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.lang.Object

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

      • ZIP_HEADER

        private static final byte[] ZIP_HEADER
    • Constructor Detail

      • ZipHeaderPeekInputStream

        protected ZipHeaderPeekInputStream​(java.io.InputStream in)
    • Method Detail

      • hasZipHeader

        public boolean hasZipHeader()
                             throws java.io.IOException
        Throws:
        java.io.IOException