ch.claudio.fat
Class Directory

java.lang.Object
  extended by ch.claudio.fat.Directory

public class Directory
extends java.lang.Object

Version:
$Id:$
Author:
Claudio Nieder

Copyright (C) 2007 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Field Summary
 java.util.List<DirectoryEntry> entries
          Entries contained in this directory block.
 
Constructor Summary
Directory()
           
 
Method Summary
static Directory create(byte[] b)
          Create an instance filled from the block.
 void fillin(byte[] b)
           
static void main(java.lang.String[] args)
          Print license.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entries

public java.util.List<DirectoryEntry> entries
Entries contained in this directory block.

Constructor Detail

Directory

public Directory()
Method Detail

fillin

public void fillin(byte[] b)
            throws java.io.UnsupportedEncodingException
Parameters:
b -
Throws:
java.io.UnsupportedEncodingException

create

public static Directory create(byte[] b)
                        throws java.io.UnsupportedEncodingException
Create an instance filled from the block.

Parameters:
b - block
Returns:
directory entry
Throws:
java.io.UnsupportedEncodingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored