tagLocation = BinaryTools.readUInt32AsLong(myInputStream);
myInputStream.close();
myInputStream = null;
}
catch (IOException myIOException) {
throw new HandlerException(myIOException);
}
finally {
if (myInputStream != null) {
try {
myInputStream.close();
}
catch (IOException myIOException) {
}
}
}
ExtendedFileEntry myExtendedFileEntry = new ExtendedFileEntry();
myExtendedFileEntry.DescriptorTag.TagSerialNumber = tagSerialNumber;
myExtendedFileEntry.DescriptorTag.DescriptorVersion = descriptorVersion;
myExtendedFileEntry.DescriptorTag.TagLocation = tagLocation;
myExtendedFileEntry.Uid = 0xFFFFFFFF; // TODO: get current uid and gid if java supports it
myExtendedFileEntry.Gid = 0xFFFFFFFF;
// TODO: get real file permission if java supports it
myExtendedFileEntry.Permissions = Permissions.OTHER_Read | Permissions.GROUP_Read | Permissions.OWNER_Read;
myExtendedFileEntry.FileLinkCount = fileLinkCount;
myExtendedFileEntry.RecordFormat = 0;
myExtendedFileEntry.RecordDisplayAttributes = 0;
myExtendedFileEntry.RecordLength = 0;
myExtendedFileEntry.AccessTime = new Timestamp(accessTime);
myExtendedFileEntry.ModificationTime = new Timestamp(modificationTime);
myExtendedFileEntry.AttributeTime = new Timestamp(attributeTime);
myExtendedFileEntry.CreationTime = new Timestamp(creationTime);
myExtendedFileEntry.Checkpoint = 1;
try {
myExtendedFileEntry.ImplementationIdentifier.setIdentifier(applicationIdentifier);
}
catch (Exception myException) {
throw new HandlerException(myException);
}
myExtendedFileEntry.ImplementationIdentifier.IdentifierSuffix = applicationIdentifierSuffix;
myExtendedFileEntry.ICBTag.PriorRecordedNumberofDirectEntries = 0;