public class Unix1ExtraField extends BaseExtraField
ExtendedTimestampLocalExtraField
or newer versions of
the Unix extra fields such as Unix2ExtraField
.Modifier and Type | Class and Description |
---|---|
static class |
Unix1ExtraField.Builder
Builder for
Unix1ExtraField . |
Modifier and Type | Field and Description |
---|---|
static int |
EXPECTED_ID |
static int |
EXTRA_MINIMUM_SIZE |
Constructor and Description |
---|
Unix1ExtraField(int extraSize,
long timeLastAccessed,
long timeLastModified,
Integer userId,
Integer groupId) |
Modifier and Type | Method and Description |
---|---|
static Unix1ExtraField.Builder |
builder()
Make a builder for this class.
|
Integer |
getGroupId()
Optional group-id.
|
long |
getTimeLastAccessed() |
long |
getTimeLastModified() |
Integer |
getUserId()
Optional user-id.
|
static Unix1ExtraField |
read(InputStream inputStream,
int id,
int size)
Read from the input-stream.
|
void |
write(OutputStream outputStream)
Write extra-field to the output-stream.
|
getExtraFieldBytes, getExtraSize, getId, validate
public static final int EXPECTED_ID
public static final int EXTRA_MINIMUM_SIZE
public static Unix1ExtraField.Builder builder()
public static Unix1ExtraField read(InputStream inputStream, int id, int size) throws IOException
IOException
public void write(OutputStream outputStream) throws IOException
write
in class BaseExtraField
IOException
public long getTimeLastAccessed()
public long getTimeLastModified()
public Integer getUserId()
public Integer getGroupId()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.