Interface Archive

  • All Superinterfaces:
    java.lang.AutoCloseable

    public interface Archive
    extends java.lang.AutoCloseable
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close()
      Closes the archive file
      java.nio.file.Path getContentRoot()
      Returns the Path of the root entry in the archive file system, e.g.
      java.nio.file.Path getPath()
      Returns the Path of the archive in the local file system
      boolean isBinaryXml​(java.nio.file.Path p, byte[] content)
      Returns true if the entry at the given path in the archive file system is a Chunk encoded XML file.
      boolean isProtoXml​(java.nio.file.Path p, byte[] content)
      Returns true if the entry at the given path in the archive file system is an XML file represented as a resource protobuf.
    • Method Detail

      • getPath

        @NonNull
        java.nio.file.Path getPath()
        Returns the Path of the archive in the local file system
      • getContentRoot

        @NonNull
        java.nio.file.Path getContentRoot()
        Returns the Path of the root entry in the archive file system, e.g. the local file system or the a zip archive file system
      • isBinaryXml

        boolean isBinaryXml​(@NonNull
                            java.nio.file.Path p,
                            @NonNull
                            byte[] content)
        Returns true if the entry at the given path in the archive file system is a Chunk encoded XML file.
      • isProtoXml

        boolean isProtoXml​(@NonNull
                           java.nio.file.Path p,
                           @NonNull
                           byte[] content)
        Returns true if the entry at the given path in the archive file system is an XML file represented as a resource protobuf.
      • close

        void close()
            throws java.io.IOException
        Closes the archive file
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException