If the entry is a directory, it doesn't create a data object.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | isDir
Tells if this entry is a directory or a regular file. |
| private boolean | isReadOnly
Tells if this entry is read-only or not. |
| private final String | path
The path of this entry. |
| private volatile boolean | released
Tells if the entry has been released or not. |
| private final BlockedByteArray | src
The data of the entry. |
| Access | Constructor and Description |
|---|---|
| public | DataStoreEntry(String
the path of the entry path, boolean whether the entry is a directory or a regular file isDir)Creates a new data store entry. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| pack-priv BlockedByteArrayInputStream | |
| pack-priv BlockedByteArrayOutputStream | Returns: AnOutputStream-object.tells whether the entry should be appended or not append)Returns an output stream to write into this entry. |
| public boolean | |
| public boolean | |
| public long | |
| pack-priv void | |
| public void | |
| public void |
| isDir | back to summary |
|---|---|
| private final boolean isDir Tells if this entry is a directory or a regular file. | |
| isReadOnly | back to summary |
|---|---|
| private boolean isReadOnly Tells if this entry is read-only or not. | |
| path | back to summary |
|---|---|
| private final String path The path of this entry. | |
| released | back to summary |
|---|---|
| private volatile boolean released Tells if the entry has been released or not. | |
| src | back to summary |
|---|---|
| private final BlockedByteArray src The data of the entry. | |
| DataStoreEntry | back to summary |
|---|---|
| public DataStoreEntry(String path, boolean isDir) Creates a new data store entry.
| |
| checkIfReleased | back to summary |
|---|---|
| private void checkIfReleased() Checks if this entry has been released.
| |
| getInputStream | back to summary |
|---|---|
| pack-priv BlockedByteArrayInputStream getInputStream() throws FileNotFoundException Returns an input stream to read from this entry.
| |
| getOutputStream | back to summary |
|---|---|
| pack-priv BlockedByteArrayOutputStream getOutputStream(boolean append) throws FileNotFoundException Returns an output stream to write into this entry.
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Tells if this entry is a directory.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() Tells if this entry is read-only.
| |
| length | back to summary |
|---|---|
| public long length() Returns the length of this entry.
| |
| release | back to summary |
|---|---|
| pack-priv void release() Relases this entry. | |
| setLength | back to summary |
|---|---|
| public void setLength(long newLength) Sets the length of this entry.
| |
| setReadOnly | back to summary |
|---|---|
| public void setReadOnly() Makes this entry read-only. | |