Class ArArchiveInputStream

    • Constructor Detail

      • ArArchiveInputStream

        public ArArchiveInputStream​(InputStream pInput)
        Constructs an Ar input stream with the referenced stream
        Parameters:
        pInput - the ar input stream
    • Method Detail

      • getNextArEntry

        public ArArchiveEntry getNextArEntry()
                                      throws IOException
        Returns the next AR entry in this stream.
        Returns:
        the next AR entry.
        Throws:
        IOException - if the entry could not be read
      • matches

        public static boolean matches​(byte[] signature,
                                      int length)
        Checks if the signature matches ASCII "!<arch>" followed by a single LF control character
        Parameters:
        signature - the bytes to check
        length - the number of bytes to check
        Returns:
        true, if this stream is an Ar archive stream, false otherwise