public class FileSystemZip.Entry
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete the entry.
|
boolean |
exists() |
byte[] |
getData()
Get the data of the entry.
|
java.lang.String |
getName() |
java.nio.file.Path |
getPath() |
java.lang.String |
getRelativePath() |
boolean |
isDirectory() |
boolean |
isFile() |
void |
setData(byte[] bytes)
Set the data of the entry.
|
public java.nio.file.Path getPath()
public java.lang.String getRelativePath()
public java.lang.String getName()
public boolean exists()
public boolean isFile()
public boolean isDirectory()
public void delete()
throws java.io.IOException
java.io.IOException - If an I/O error occurspublic byte[] getData()
throws java.io.IOException
java.lang.IllegalStateException - If the entry is a directoryjava.io.IOException - If an I/O error occurspublic void setData(@Nullable
byte[] bytes)
throws java.io.IOException
bytes is null a directory will be created.bytes - The data to setjava.lang.IllegalStateException - If the entry has the wrong typejava.io.IOException - If an I/O error occurs