catch (IOException myIOException) {
}
}
}
UnallocatedSpaceDescriptor myUnallocatedSpaceDescriptor = new UnallocatedSpaceDescriptor();
myUnallocatedSpaceDescriptor.VolumeDescriptorSequenceNumber = volumeDescriptorSequenceNumber;
myUnallocatedSpaceDescriptor.NumberofAllocationDescriptors = 1;
myUnallocatedSpaceDescriptor.AllocationDescriptors = new Extend_ad[1];
myUnallocatedSpaceDescriptor.AllocationDescriptors[0] = new Extend_ad();
myUnallocatedSpaceDescriptor.AllocationDescriptors[0].loc = unallocatedSpaceStartBlock;
myUnallocatedSpaceDescriptor.AllocationDescriptors[0].len =
(unallocatedSpaceEndBlock - unallocatedSpaceStartBlock) * blockSize;
/*
// full element with descriptor tag
myUnallocatedSpaceDescriptor.DescriptorTag.TagSerialNumber = tagSerialNumber;
myUnallocatedSpaceDescriptor.DescriptorTag.DescriptorVersion = descriptorVersion;
myUnallocatedSpaceDescriptor.DescriptorTag.TagLocation = tagLocation;
super.data( new ByteArrayDataReference( myUnallocatedSpaceDescriptor.getBytes( blockSize ) ) );
*/
// without descriptor tag (handled in next pipeline section)
super.startElement(new SabreUDFElement(SabreUDFElement.UDFElementType.DescriptorTag));
super.data(new WordDataReference(7)); // tag identifier
super.data(new WordDataReference(tagLocation)); // tag location
super.data(new WordDataReference(tagSerialNumber)); // tag serial number
super.data(new WordDataReference(descriptorVersion)); // descriptor version
super.data(new ByteArrayDataReference(myUnallocatedSpaceDescriptor.getBytesWithoutDescriptorTag()));
super.endElement();
}