org.cdlib.xtf.util
Class StructuredFile.DirEntry

Object
  extended by StructuredFile.DirEntry
Enclosing class:
StructuredFile

private class StructuredFile.DirEntry
extends Object

A single entry in a Directory


Field Summary
 String name
          Sub-file name
 int segLength
          Length of the sub-file
 int segOffset
          Absolute file offset of the sub-file's start
 
Constructor Summary
StructuredFile.DirEntry()
          Create an empty directory entry
StructuredFile.DirEntry(PackedByteBuf buf)
          Read a directory entry from a PackedByteBuf
 
Method Summary
 void writeTo(PackedByteBuf buf)
          Write a directory entry to a PackedByteBuf
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name
Sub-file name


segOffset

public int segOffset
Absolute file offset of the sub-file's start


segLength

public int segLength
Length of the sub-file

Constructor Detail

StructuredFile.DirEntry

public StructuredFile.DirEntry()
Create an empty directory entry


StructuredFile.DirEntry

public StructuredFile.DirEntry(PackedByteBuf buf)
Read a directory entry from a PackedByteBuf

Method Detail

writeTo

public void writeTo(PackedByteBuf buf)
Write a directory entry to a PackedByteBuf