Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ydp.jai
Class StructuredStorage  view StructuredStorage download StructuredStorage.java

java.lang.Object
  extended byorg.ydp.jai.StructuredStorage

public class StructuredStorage
extends java.lang.Object


Field Summary
private  long csectDif
           
private  long csectFat
           
private  long csectMiniFat
           
(package private)  long cwdIndex
           
private  SSDirectoryEntry[] DIR
           
private  SeekableStream FATStream
           
(package private)  SeekableStream file
           
private  long[] MINIFAT
           
private  long miniSectorCutoff
           
private  int miniSectorShift
           
private  SeekableStream miniStream
           
private  long sectDifStart
           
private  long sectDirStart
           
private  long[] sectFat
           
private  long sectMiniFatStart
           
private  int sectorShift
           
 
Constructor Summary
StructuredStorage(SeekableStream file)
           
 
Method Summary
 boolean changeDirectory(java.lang.String name)
           
 void changeDirectoryToRoot()
           
private  int getCurrentIndex()
           
private  void getDirectory()
           
private  SSDirectoryEntry getDirectoryEntry(long index)
           
private  void getFat()
           
private  long getFATSector(long sector)
           
private  void getHeader()
           
private  int getIndex(java.lang.String name, int index)
           
private  int getLength(long index)
           
private  void getMiniFat()
           
private  long getMiniFATSector(long sector)
           
private  int getMiniSectorSize()
           
private  void getMiniStream()
           
private  long getOffsetOfMiniSector(long sector)
           
private  long getOffsetOfSector(long sector)
           
private  int getSectorSize()
           
private  long getStartSector(long index)
           
 SeekableStream getStream(java.lang.String name)
           
 byte[] getStreamAsBytes(java.lang.String name)
           
private  long getStreamIndex(java.lang.String name)
           
static void main(java.lang.String[] args)
           
private  void readMiniSector(long sector, byte[] buf, int offset)
           
private  void readMiniSector(long sector, byte[] buf, int offset, int length)
           
private  void readSector(long sector, byte[] buf, int offset)
           
private  void readSector(long sector, byte[] buf, int offset, int length)
           
private  long searchDirectory(java.lang.String name, long index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

file

SeekableStream file

sectorShift

private int sectorShift

miniSectorShift

private int miniSectorShift

csectFat

private long csectFat

sectDirStart

private long sectDirStart

miniSectorCutoff

private long miniSectorCutoff

sectMiniFatStart

private long sectMiniFatStart

csectMiniFat

private long csectMiniFat

sectDifStart

private long sectDifStart

csectDif

private long csectDif

sectFat

private long[] sectFat

MINIFAT

private long[] MINIFAT

DIR

private SSDirectoryEntry[] DIR

miniStream

private SeekableStream miniStream

FATStream

private SeekableStream FATStream

cwdIndex

long cwdIndex
Constructor Detail

StructuredStorage

public StructuredStorage(SeekableStream file)
                  throws java.io.IOException
Method Detail

getHeader

private void getHeader()
                throws java.io.IOException

getFat

private void getFat()
             throws java.io.IOException

getMiniFat

private void getMiniFat()
                 throws java.io.IOException

getDirectory

private void getDirectory()
                   throws java.io.IOException

getMiniStream

private void getMiniStream()
                    throws java.io.IOException

getSectorSize

private int getSectorSize()

getOffsetOfSector

private long getOffsetOfSector(long sector)

getMiniSectorSize

private int getMiniSectorSize()

getOffsetOfMiniSector

private long getOffsetOfMiniSector(long sector)

readMiniSector

private void readMiniSector(long sector,
                            byte[] buf,
                            int offset,
                            int length)
                     throws java.io.IOException

readMiniSector

private void readMiniSector(long sector,
                            byte[] buf,
                            int offset)
                     throws java.io.IOException

readSector

private void readSector(long sector,
                        byte[] buf,
                        int offset,
                        int length)
                 throws java.io.IOException

readSector

private void readSector(long sector,
                        byte[] buf,
                        int offset)
                 throws java.io.IOException

getDirectoryEntry

private SSDirectoryEntry getDirectoryEntry(long index)

getStartSector

private long getStartSector(long index)

getLength

private int getLength(long index)

getFATSector

private long getFATSector(long sector)
                   throws java.io.IOException

getMiniFATSector

private long getMiniFATSector(long sector)

getCurrentIndex

private int getCurrentIndex()

getIndex

private int getIndex(java.lang.String name,
                     int index)

searchDirectory

private long searchDirectory(java.lang.String name,
                             long index)

changeDirectoryToRoot

public void changeDirectoryToRoot()

changeDirectory

public boolean changeDirectory(java.lang.String name)

getStreamIndex

private long getStreamIndex(java.lang.String name)

getStreamAsBytes

public byte[] getStreamAsBytes(java.lang.String name)
                        throws java.io.IOException

getStream

public SeekableStream getStream(java.lang.String name)
                         throws java.io.IOException

main

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