public interface Archive
extends java.lang.AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the archive file
|
java.nio.file.Path |
getContentRoot()
Returns the
Path of the root entry in the |
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. |
@NonNull java.nio.file.Path getPath()
Path of the archive in the local file system@NonNull java.nio.file.Path getContentRoot()
Path of the root entry in the boolean isBinaryXml(@NonNull
java.nio.file.Path p,
@NonNull
byte[] content)
true if the entry at the given path in the archive file system is a Chunk
encoded XML file.boolean isProtoXml(@NonNull
java.nio.file.Path p,
@NonNull
byte[] content)
true if the entry at the given path in the archive file system is an XML file
represented as a resource protobuf.void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException