META-INF/
META-INF/MANIFEST.MF
de/
de/waldheinz/
de/waldheinz/fs/
de/waldheinz/fs/FsDirectoryEntry$1.classFsDirectoryEntry.java
package de.waldheinz.fs
final de.waldheinz.fs.FsDirectoryEntry$1 extends java.lang.Object implements java.util.Comparator {
void ()
public int compare (de.waldheinz.fs.FsDirectoryEntry, de.waldheinz.fs.FsDirectoryEntry)
de.waldheinz.fs.FsDirectoryEntry e1
de.waldheinz.fs.FsDirectoryEntry e2
public volatile int compare (java.lang.Object, java.lang.Object)
Object x0
Object x1
}
de/waldheinz/fs/FsFile.classFsFile.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.FsFile extends java.lang.Object implements de.waldheinz.fs.FsObject {
public abstract long getLength ()
public abstract void setLength (long) throws java.io.IOException
public abstract void read (long, java.nio.ByteBuffer) throws java.io.IOException
public abstract void write (long, java.nio.ByteBuffer) throws de.waldheinz.fs.ReadOnlyException java.io.IOException
public abstract void flush () throws java.io.IOException
}
de/waldheinz/fs/AbstractFsObject.classAbstractFsObject.java
package de.waldheinz.fs
public de.waldheinz.fs.AbstractFsObject extends java.lang.Object implements de.waldheinz.fs.FsObject {
private final boolean readOnly
private boolean valid
protected void (boolean)
boolean readOnly
public final boolean isValid ()
protected final void invalidate ()
protected final void checkValid () throws java.lang.IllegalStateException
protected final void checkWritable () throws java.lang.IllegalStateException de.waldheinz.fs.ReadOnlyException
public final boolean isReadOnly ()
}
de/waldheinz/fs/FsObject.classFsObject.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.FsObject extends java.lang.Object {
public abstract boolean isValid ()
public abstract boolean isReadOnly ()
}
de/waldheinz/fs/FsDirectoryEntry.classFsDirectoryEntry.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.FsDirectoryEntry extends java.lang.Object implements de.waldheinz.fs.FsObject {
public static final java.util.Comparator DIRECTORY_ENTRY_COMPARATOR
public abstract java.lang.String getName ()
public abstract long getLastModified () throws java.io.IOException
public abstract long getCreated () throws java.io.IOException
public abstract long getLastAccessed () throws java.io.IOException
public abstract boolean isFile ()
public abstract boolean isDirectory ()
public abstract void setName (java.lang.String) throws java.io.IOException
public abstract void setLastModified (long) throws java.io.IOException
public abstract de.waldheinz.fs.FsFile getFile () throws java.io.IOException java.lang.UnsupportedOperationException
public abstract de.waldheinz.fs.FsDirectory getDirectory () throws java.io.IOException java.lang.UnsupportedOperationException
public abstract boolean isDirty ()
static void ()
}
de/waldheinz/fs/FsDirectory.classFsDirectory.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.FsDirectory extends java.lang.Object implements java.lang.Iterable de.waldheinz.fs.FsObject {
public abstract java.util.Iterator iterator ()
public abstract de.waldheinz.fs.FsDirectoryEntry getEntry (java.lang.String) throws java.io.IOException
public abstract de.waldheinz.fs.FsDirectoryEntry addFile (java.lang.String) throws java.io.IOException
public abstract de.waldheinz.fs.FsDirectoryEntry addDirectory (java.lang.String) throws java.io.IOException
public abstract void remove (java.lang.String) throws java.io.IOException
public abstract void flush () throws java.io.IOException
}
de/waldheinz/fs/FileSystemFactory.classFileSystemFactory.java
package de.waldheinz.fs
public de.waldheinz.fs.FileSystemFactory extends java.lang.Object {
private void ()
public static de.waldheinz.fs.FileSystem create (de.waldheinz.fs.BlockDevice, boolean) throws de.waldheinz.fs.UnknownFileSystemException java.io.IOException
de.waldheinz.fs.BlockDevice device
boolean readOnly
}
de/waldheinz/fs/BlockDevice.classBlockDevice.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.BlockDevice extends java.lang.Object {
public abstract long getSize () throws java.io.IOException
public abstract void read (long, java.nio.ByteBuffer) throws java.io.IOException
public abstract void write (long, java.nio.ByteBuffer) throws de.waldheinz.fs.ReadOnlyException java.io.IOException java.lang.IllegalArgumentException
public abstract void flush () throws java.io.IOException
public abstract int getSectorSize () throws java.io.IOException
public abstract void close () throws java.io.IOException
public abstract boolean isClosed ()
public abstract boolean isReadOnly ()
}
de/waldheinz/fs/ReadOnlyException.classReadOnlyException.java
package de.waldheinz.fs
public final de.waldheinz.fs.ReadOnlyException extends java.lang.RuntimeException {
private static final long serialVersionUID
public void ()
}
de/waldheinz/fs/FileSystem.classFileSystem.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.FileSystem extends java.lang.Object {
public abstract de.waldheinz.fs.FsDirectory getRoot () throws java.io.IOException
public abstract boolean isReadOnly ()
public abstract void close () throws java.io.IOException
public abstract boolean isClosed ()
public abstract long getTotalSpace () throws java.io.IOException
public abstract long getFreeSpace () throws java.io.IOException
public abstract long getUsableSpace () throws java.io.IOException
public abstract void flush () throws java.io.IOException
}
de/waldheinz/fs/AbstractFileSystem.classAbstractFileSystem.java
package de.waldheinz.fs
public abstract de.waldheinz.fs.AbstractFileSystem extends java.lang.Object implements de.waldheinz.fs.FileSystem {
private final boolean readOnly
private boolean closed
public void (boolean)
boolean readOnly
public void close () throws java.io.IOException
public final boolean isClosed ()
public final boolean isReadOnly ()
protected final void checkClosed () throws java.lang.IllegalStateException
protected final void checkReadOnly () throws de.waldheinz.fs.ReadOnlyException
}
de/waldheinz/fs/UnknownFileSystemException.classUnknownFileSystemException.java
package de.waldheinz.fs
public final de.waldheinz.fs.UnknownFileSystemException extends java.io.IOException {
private static final long serialVersionUID
private final de.waldheinz.fs.BlockDevice device
public void (de.waldheinz.fs.BlockDevice)
de.waldheinz.fs.BlockDevice device
public de.waldheinz.fs.BlockDevice getDevice ()
}
de/waldheinz/fs/util/
de/waldheinz/fs/util/RamDisk.classRamDisk.java
package de.waldheinz.fs.util
public final de.waldheinz.fs.util.RamDisk extends java.lang.Object implements de.waldheinz.fs.BlockDevice {
public static final int DEFAULT_SECTOR_SIZE
private final int sectorSize
private final java.nio.ByteBuffer data
private final int size
private boolean closed
public static de.waldheinz.fs.util.RamDisk readGzipped (java.io.InputStream) throws java.io.IOException
java.io.InputStream in
java.util.zip.GZIPInputStream zis
java.io.ByteArrayOutputStream bos
byte[] buffer
int read
int total
java.nio.ByteBuffer bb
private void (java.nio.ByteBuffer, int)
java.nio.ByteBuffer buffer
int sectorSize
public void (int)
int size
public void (int, int)
int size
int sectorSize
public long getSize ()
public void read (long, java.nio.ByteBuffer) throws java.io.IOException
StringBuilder sb
long devOffset
java.nio.ByteBuffer dest
public void write (long, java.nio.ByteBuffer) throws java.io.IOException
long devOffset
java.nio.ByteBuffer src
public java.nio.ByteBuffer getBuffer ()
public void flush () throws java.io.IOException
public int getSectorSize ()
public void close () throws java.io.IOException
public boolean isClosed ()
private void checkClosed ()
public boolean isReadOnly ()
}
de/waldheinz/fs/util/FileDisk.classFileDisk.java
package de.waldheinz.fs.util
public final de.waldheinz.fs.util.FileDisk extends java.lang.Object implements de.waldheinz.fs.BlockDevice {
public static final int BYTES_PER_SECTOR
private final java.io.RandomAccessFile raf
private final java.nio.channels.FileChannel fc
private final boolean readOnly
private boolean closed
public void (java.io.File, boolean) throws java.io.FileNotFoundException
java.io.File file
boolean readOnly
String modeString
public void (java.io.RandomAccessFile, java.nio.channels.FileChannel, boolean)
java.io.RandomAccessFile raf
java.nio.channels.FileChannel fc
boolean readOnly
private void (java.io.RandomAccessFile, boolean)
java.io.RandomAccessFile raf
boolean readOnly
public static de.waldheinz.fs.util.FileDisk create (java.io.File, long) throws java.io.IOException
java.io.RandomAccessFile raf
java.io.FileNotFoundException ex
java.io.File file
long size
public long getSize () throws java.io.IOException
public void read (long, java.nio.ByteBuffer) throws java.io.IOException
int read
long devOffset
java.nio.ByteBuffer dest
int toRead
public void write (long, java.nio.ByteBuffer) throws java.io.IOException
int written
long devOffset
java.nio.ByteBuffer src
int toWrite
public void flush () throws java.io.IOException
public int getSectorSize ()
public void close () throws java.io.IOException
public boolean isClosed ()
private void checkClosed ()
public boolean isReadOnly ()
}
de/waldheinz/fs/fat/
de/waldheinz/fs/fat/FatType$2.classFatType.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.FatType$2 extends de.waldheinz.fs.fat.FatType {
void (java.lang.String, int, int, long, float, java.lang.String)
int x0
long x1
float x2
String x3
long readEntry (byte[], int)
byte[] data
int index
int idx
int b1
int b2
void writeEntry (byte[], int, long)
byte[] data
int index
long entry
int idx
}
de/waldheinz/fs/fat/FatUtils.classFatUtils.java
package de.waldheinz.fs.fat
public de.waldheinz.fs.fat.FatUtils extends java.lang.Object {
public static long getFatOffset (de.waldheinz.fs.fat.BootSector, int)
de.waldheinz.fs.fat.BootSector bs
int fatNr
long sectSize
long sectsPerFat
long resSects
long offset
long fatSize
public static long getRootDirOffset (de.waldheinz.fs.fat.BootSector)
de.waldheinz.fs.fat.BootSector bs
long sectSize
long sectsPerFat
int fats
long offset
public static long getFilesOffset (de.waldheinz.fs.fat.BootSector)
de.waldheinz.fs.fat.BootSector bs
long offset
private void ()
}
de/waldheinz/fs/fat/FatLfnDirectoryEntry.classFatLfnDirectoryEntry.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.FatLfnDirectoryEntry extends de.waldheinz.fs.AbstractFsObject implements de.waldheinz.fs.FsDirectoryEntry {
final de.waldheinz.fs.fat.FatDirectoryEntry realEntry
private de.waldheinz.fs.fat.FatLfnDirectory parent
private String fileName
void (java.lang.String, de.waldheinz.fs.fat.ShortName, de.waldheinz.fs.fat.FatLfnDirectory, boolean)
String name
de.waldheinz.fs.fat.ShortName sn
de.waldheinz.fs.fat.FatLfnDirectory parent
boolean directory
long now
void (de.waldheinz.fs.fat.FatLfnDirectory, de.waldheinz.fs.fat.FatDirectoryEntry, java.lang.String)
de.waldheinz.fs.fat.FatLfnDirectory parent
de.waldheinz.fs.fat.FatDirectoryEntry realEntry
String fileName
static de.waldheinz.fs.fat.FatLfnDirectoryEntry extract (de.waldheinz.fs.fat.FatLfnDirectory, int, int)
String fileName
de.waldheinz.fs.fat.FatDirectoryEntry entry
int i
StringBuilder name
de.waldheinz.fs.fat.FatLfnDirectory dir
int offset
int len
de.waldheinz.fs.fat.FatDirectoryEntry realEntry
String fileName
public boolean isHiddenFlag ()
public void setHiddenFlag (boolean) throws de.waldheinz.fs.ReadOnlyException
boolean hidden
public boolean isSystemFlag ()
public void setSystemFlag (boolean) throws de.waldheinz.fs.ReadOnlyException
boolean systemEntry
public boolean isReadOnlyFlag ()
public void setReadOnlyFlag (boolean) throws de.waldheinz.fs.ReadOnlyException
boolean readOnly
public boolean isArchiveFlag ()
public void setArchiveFlag (boolean) throws de.waldheinz.fs.ReadOnlyException
boolean archive
private int totalEntrySize ()
int result
de.waldheinz.fs.fat.FatDirectoryEntry[] compactForm ()
int i
int totalEntrySize
de.waldheinz.fs.fat.FatDirectoryEntry[] entries
byte checkSum
int j
public java.lang.String getName ()
public void setName (java.lang.String) throws java.io.IOException
String newName
public void moveTo (de.waldheinz.fs.fat.FatLfnDirectory, java.lang.String) throws java.io.IOException de.waldheinz.fs.ReadOnlyException
de.waldheinz.fs.fat.FatLfnDirectory target
String newName
public void setLastModified (long)
long lastModified
public de.waldheinz.fs.fat.FatFile getFile () throws java.io.IOException
public de.waldheinz.fs.fat.FatLfnDirectory getDirectory () throws java.io.IOException
public java.lang.String toString ()
private static de.waldheinz.fs.fat.FatDirectoryEntry createPart (java.lang.String, int, byte, boolean)
int i
String subName
int ordinal
byte checkSum
boolean isLast
char[] unicodechar
byte[] rawData
public long getLastModified () throws java.io.IOException
public long getCreated () throws java.io.IOException
public long getLastAccessed () throws java.io.IOException
public boolean isFile ()
public boolean isDirectory ()
public boolean isDirty ()
public volatile de.waldheinz.fs.FsDirectory getDirectory () throws java.io.IOException java.lang.UnsupportedOperationException
public volatile de.waldheinz.fs.FsFile getFile () throws java.io.IOException java.lang.UnsupportedOperationException
}
de/waldheinz/fs/fat/FatType$3.classFatType.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.FatType$3 extends de.waldheinz.fs.fat.FatType {
void (java.lang.String, int, int, long, float, java.lang.String)
int x0
long x1
float x2
String x3
long readEntry (byte[], int)
byte[] data
int index
int idx
long l1
long l2
long l3
long l4
void writeEntry (byte[], int, long)
byte[] data
int index
long entry
int idx
}
de/waldheinz/fs/fat/ShortName.classShortName.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.ShortName extends java.lang.Object {
private static final byte[] ILLEGAL_CHARS
public static final de.waldheinz.fs.fat.ShortName DOT
public static final de.waldheinz.fs.fat.ShortName DOT_DOT
private final char[] name
private boolean mShortNameOnly
private void (java.lang.String)
String nameString
String extString
String nameExt
int i
String nameString
String extString
void (java.lang.String, java.lang.String)
String name
String ext
void (char[])
char[] name
public void (char[], char[])
char[] nameArr
char[] extArr
char[] result
private static char[] toCharArray (java.lang.String, java.lang.String)
String name
String ext
char[] result
public byte checkSum ()
int i
int i
byte[] dest
int sum
public static de.waldheinz.fs.fat.ShortName get (java.lang.String) throws java.lang.IllegalArgumentException
String name
public static boolean canConvert (java.lang.String)
IllegalArgumentException ex
String nameExt
public static de.waldheinz.fs.fat.ShortName parse (byte[])
int i
int i
byte[] data
char[] nameArr
char[] extArr
public void write (byte[])
int i
byte[] dest
public java.lang.String asSimpleString ()
public java.lang.String toString ()
int i
StringBuilder sb
private static void checkValidName (java.lang.String)
String name
private static void checkValidExt (java.lang.String)
String ext
private static void checkString (java.lang.String, java.lang.String, int, int)
String str
String strType
int minLength
int maxLength
public boolean equals (java.lang.Object)
Object obj
de.waldheinz.fs.fat.ShortName other
public int hashCode ()
public void setHasShortNameOnly (boolean)
boolean hasShortNameOnly
public boolean hasShortNameOnly ()
public static void checkValidChars (char[]) throws java.lang.IllegalArgumentException
int j
byte toTest
int i
char[] chars
static void ()
}
de/waldheinz/fs/fat/Fat32BootSector.classFat32BootSector.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.Fat32BootSector extends de.waldheinz.fs.fat.BootSector {
public static final int ROOT_DIR_FIRST_CLUSTER_OFFSET
public static final int SECTORS_PER_FAT_OFFSET
public static final int FILE_SYSTEM_TYPE_OFFSET
public static final int VERSION_OFFSET
public static final int VERSION
public static final int FS_INFO_SECTOR_OFFSET
public static final int BOOT_SECTOR_COPY_OFFSET
public static final int EXTENDED_BOOT_SIGNATURE_OFFSET
public void (de.waldheinz.fs.BlockDevice) throws java.io.IOException
de.waldheinz.fs.BlockDevice device
public void init () throws java.io.IOException
public long getRootDirFirstCluster ()
public void setRootDirFirstCluster (long)
long value
public void setBootSectorCopySector (int)
int sectNr
public int getBootSectorCopySector ()
public void setVolumeLabel (java.lang.String)
byte c
int i
String label
public int getFsInfoSectorNr ()
public void setFsInfoSectorNr (int)
int offset
public void setSectorsPerFat (long)
long v
public long getSectorsPerFat ()
public de.waldheinz.fs.fat.FatType getFatType ()
public void setSectorCount (long)
long count
public long getSectorCount ()
public int getRootDirEntryCount ()
public void setFileSystemId (int)
int id
public int getFileSystemId ()
public void writeCopy (de.waldheinz.fs.BlockDevice) throws java.io.IOException
long offset
de.waldheinz.fs.BlockDevice device
public int getFileSystemTypeLabelOffset ()
public int getExtendedBootSignatureOffset ()
}
de/waldheinz/fs/fat/Fat16BootSector.classFat16BootSector.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.Fat16BootSector extends de.waldheinz.fs.fat.BootSector {
public static final int DEFAULT_ROOT_DIR_ENTRY_COUNT
public static final String DEFAULT_VOLUME_LABEL
public static final int MAX_FAT12_CLUSTERS
public static final int MAX_FAT16_CLUSTERS
public static final int SECTORS_PER_FAT_OFFSET
public static final int ROOT_DIR_ENTRIES_OFFSET
public static final int VOLUME_LABEL_OFFSET
public static final int FILE_SYSTEM_TYPE_OFFSET
public static final int MAX_VOLUME_LABEL_LENGTH
public static final int EXTENDED_BOOT_SIGNATURE_OFFSET
public void (de.waldheinz.fs.BlockDevice)
de.waldheinz.fs.BlockDevice device
public java.lang.String getVolumeLabel ()
char c
int i
StringBuilder sb
public void setVolumeLabel (java.lang.String) throws java.lang.IllegalArgumentException
int i
String label
public long getSectorsPerFat ()
public void setSectorsPerFat (long)
long v
public de.waldheinz.fs.fat.FatType getFatType ()
long rootDirSectors
long dataSectors
long clusterCount
public void setSectorCount (long)
long count
public long getSectorCount ()
public int getRootDirEntryCount ()
public void setRootDirEntryCount (int) throws java.lang.IllegalArgumentException
int v
public void init () throws java.io.IOException
public int getFileSystemTypeLabelOffset ()
public int getExtendedBootSignatureOffset ()
}
de/waldheinz/fs/fat/FatType$1.classFatType.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.FatType$1 extends de.waldheinz.fs.fat.FatType {
void (java.lang.String, int, int, long, float, java.lang.String)
int x0
long x1
float x2
String x3
long readEntry (byte[], int)
byte[] data
int index
int idx
int b1
int b2
int v
void writeEntry (byte[], int, long)
byte[] data
int index
long entry
int idx
}
de/waldheinz/fs/fat/FatLfnDirectory.classFatLfnDirectory.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.FatLfnDirectory extends de.waldheinz.fs.AbstractFsObject implements de.waldheinz.fs.FsDirectory {
private final java.util.Set usedNames
private final de.waldheinz.fs.fat.Fat fat
private final java.util.Map shortNameIndex
private final java.util.Map longNameIndex
private final java.util.Map entryToFile
private final java.util.Map entryToDirectory
private de.waldheinz.fs.fat.Dummy83BufferGenerator dbg
final de.waldheinz.fs.fat.AbstractDirectory dir
static final boolean $assertionsDisabled
void (de.waldheinz.fs.fat.AbstractDirectory, de.waldheinz.fs.fat.Fat, boolean) throws java.io.IOException
de.waldheinz.fs.fat.AbstractDirectory dir
de.waldheinz.fs.fat.Fat fat
boolean readOnly
de.waldheinz.fs.fat.FatFile getFile (de.waldheinz.fs.fat.FatDirectoryEntry) throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry entry
de.waldheinz.fs.fat.FatFile file
de.waldheinz.fs.fat.FatLfnDirectory getDirectory (de.waldheinz.fs.fat.FatDirectoryEntry) throws java.io.IOException
de.waldheinz.fs.fat.ClusterChainDirectory storage
de.waldheinz.fs.fat.FatDirectoryEntry entry
de.waldheinz.fs.fat.FatLfnDirectory result
public de.waldheinz.fs.fat.FatLfnDirectoryEntry addFile (java.lang.String) throws java.io.IOException
String name
de.waldheinz.fs.fat.ShortName sn
de.waldheinz.fs.fat.FatLfnDirectoryEntry entry
boolean isFreeName (java.lang.String)
String name
private void checkUniqueName (java.lang.String) throws java.io.IOException
String name
private void freeUniqueName (java.lang.String)
String name
private de.waldheinz.fs.fat.ShortName makeShortName (java.lang.String, boolean) throws java.io.IOException
IllegalArgumentException ex
String name
boolean isDirectory
de.waldheinz.fs.fat.ShortName result
public de.waldheinz.fs.fat.FatLfnDirectoryEntry addDirectory (java.lang.String) throws java.io.IOException
de.waldheinz.fs.fat.ClusterChain cc
java.io.IOException ex
String name
de.waldheinz.fs.fat.ShortName sn
de.waldheinz.fs.fat.FatDirectoryEntry real
de.waldheinz.fs.fat.FatLfnDirectoryEntry e
public de.waldheinz.fs.fat.FatLfnDirectoryEntry getEntry (java.lang.String)
String name
de.waldheinz.fs.fat.FatLfnDirectoryEntry entry
private void parseLfn () throws java.io.IOException
int offset
de.waldheinz.fs.fat.FatLfnDirectoryEntry current
int i
int size
private void updateLFN () throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry[] encoded
de.waldheinz.fs.fat.FatLfnDirectoryEntry currentEntry
java.util.Iterator i$
java.util.ArrayList dest
int size
public void flush () throws java.io.IOException
de.waldheinz.fs.fat.FatFile f
java.util.Iterator i$
de.waldheinz.fs.fat.FatLfnDirectory d
java.util.Iterator i$
public java.util.Iterator iterator ()
public void remove (java.lang.String) throws java.io.IOException java.lang.IllegalArgumentException
String name
de.waldheinz.fs.fat.FatLfnDirectoryEntry entry
de.waldheinz.fs.fat.ClusterChain cc
void unlinkEntry (de.waldheinz.fs.fat.FatLfnDirectoryEntry)
de.waldheinz.fs.fat.FatLfnDirectoryEntry entry
de.waldheinz.fs.fat.ShortName sn
String lowerName
void linkEntry (de.waldheinz.fs.fat.FatLfnDirectoryEntry) throws java.io.IOException
de.waldheinz.fs.fat.FatLfnDirectoryEntry entry
de.waldheinz.fs.fat.ShortName name
public java.lang.String toString ()
private static de.waldheinz.fs.fat.ClusterChainDirectory read (de.waldheinz.fs.fat.FatDirectoryEntry, de.waldheinz.fs.fat.Fat) throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry entry
de.waldheinz.fs.fat.Fat fat
de.waldheinz.fs.fat.ClusterChain chain
de.waldheinz.fs.fat.ClusterChainDirectory result
public volatile de.waldheinz.fs.FsDirectoryEntry addDirectory (java.lang.String) throws java.io.IOException
String x0
public volatile de.waldheinz.fs.FsDirectoryEntry addFile (java.lang.String) throws java.io.IOException
String x0
public volatile de.waldheinz.fs.FsDirectoryEntry getEntry (java.lang.String) throws java.io.IOException
String x0
static java.util.Map access$000 (de.waldheinz.fs.fat.FatLfnDirectory)
de.waldheinz.fs.fat.FatLfnDirectory x0
static void ()
}
de/waldheinz/fs/fat/ClusterChain.classClusterChain.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.ClusterChain extends de.waldheinz.fs.AbstractFsObject {
protected final de.waldheinz.fs.fat.Fat fat
private final de.waldheinz.fs.BlockDevice device
private final int clusterSize
protected final long dataOffset
private long startCluster
public void (de.waldheinz.fs.fat.Fat, boolean)
de.waldheinz.fs.fat.Fat fat
boolean readOnly
public void (de.waldheinz.fs.fat.Fat, long, boolean)
de.waldheinz.fs.fat.Fat fat
long startCluster
boolean readOnly
public int getClusterSize ()
public de.waldheinz.fs.fat.Fat getFat ()
public de.waldheinz.fs.BlockDevice getDevice ()
public long getStartCluster ()
private long getDevOffset (long, int)
long cluster
int clusterOffset
public long getLengthOnDisk ()
public long setSize (long) throws java.io.IOException
long size
long nrClusters
public int getChainLength ()
long[] chain
public void setChainLength (int) throws java.io.IOException
long[] chain
int count
int i
int i
long[] chain
int nrClusters
public void readData (long, java.nio.ByteBuffer) throws java.io.IOException
int clusOfs
int size
int size
long offset
java.nio.ByteBuffer dest
int len
long[] chain
de.waldheinz.fs.BlockDevice dev
int chainIdx
public void writeData (long, java.nio.ByteBuffer) throws java.io.IOException
int clusOfs
int size
int size
long offset
java.nio.ByteBuffer srcBuf
int len
long minSize
long[] chain
int chainIdx
public boolean equals (java.lang.Object)
Object obj
de.waldheinz.fs.fat.ClusterChain other
public int hashCode ()
int hash
}
de/waldheinz/fs/fat/Fat.classFat.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.Fat extends java.lang.Object {
public static final int FIRST_CLUSTER
private final long[] entries
private final de.waldheinz.fs.fat.FatType fatType
private final int sectorCount
private final int sectorSize
private final de.waldheinz.fs.BlockDevice device
private final de.waldheinz.fs.fat.BootSector bs
private final long offset
private final int lastClusterIndex
private int lastAllocatedCluster
public static de.waldheinz.fs.fat.Fat read (de.waldheinz.fs.fat.BootSector, int) throws java.io.IOException java.lang.IllegalArgumentException
de.waldheinz.fs.fat.BootSector bs
int fatNr
long fatOffset
de.waldheinz.fs.fat.Fat result
public static de.waldheinz.fs.fat.Fat create (de.waldheinz.fs.fat.BootSector, int) throws java.io.IOException java.lang.IllegalArgumentException
de.waldheinz.fs.fat.BootSector bs
int fatNr
long fatOffset
de.waldheinz.fs.fat.Fat result
private void (de.waldheinz.fs.fat.BootSector, long) throws java.io.IOException
de.waldheinz.fs.fat.BootSector bs
long offset
public de.waldheinz.fs.fat.FatType getFatType ()
public de.waldheinz.fs.fat.BootSector getBootSector ()
public de.waldheinz.fs.BlockDevice getDevice ()
private void init (int)
int mediumDescriptor
private void read () throws java.io.IOException
int i
byte[] data
public void write () throws java.io.IOException
public void writeCopy (long) throws java.io.IOException
int index
long offset
byte[] data
public int getMediumDescriptor ()
public long getEntry (int)
int index
public int getLastFreeCluster ()
public long[] getChain (long)
long startCluster
int count
long cluster
long[] chain
int i
public long getNextCluster (long)
long cluster
long entry
public long allocNew () throws java.io.IOException
int i
int entryIndex
public int getFreeClusterCount ()
int i
int result
public int getLastAllocatedCluster ()
public long[] allocNew (int) throws java.io.IOException
int i
int nrClusters
long[] rc
public long allocAppend (long) throws java.io.IOException
long cluster
long newCluster
public void setEof (long)
long cluster
public void setFree (long)
long cluster
public boolean equals (java.lang.Object)
Object obj
de.waldheinz.fs.fat.Fat other
public int hashCode ()
int hash
protected boolean isFreeCluster (long)
long entry
protected boolean isReservedCluster (long)
long entry
protected boolean isEofCluster (long)
long entry
protected void testCluster (long) throws java.lang.IllegalArgumentException
long cluster
public java.lang.String toString ()
StringBuilder sb
}
de/waldheinz/fs/fat/BootSector.classBootSector.java
package de.waldheinz.fs.fat
public abstract de.waldheinz.fs.fat.BootSector extends de.waldheinz.fs.fat.Sector {
public static final int FAT_COUNT_OFFSET
public static final int RESERVED_SECTORS_OFFSET
public static final int TOTAL_SECTORS_16_OFFSET
public static final int TOTAL_SECTORS_32_OFFSET
public static final int FILE_SYSTEM_TYPE_LENGTH
public static final int SECTORS_PER_CLUSTER_OFFSET
public static final int EXTENDED_BOOT_SIGNATURE
public static final int SIZE
protected void (de.waldheinz.fs.BlockDevice)
de.waldheinz.fs.BlockDevice device
public static de.waldheinz.fs.fat.BootSector read (de.waldheinz.fs.BlockDevice) throws java.io.IOException
de.waldheinz.fs.BlockDevice device
java.nio.ByteBuffer bb
byte sectorsPerCluster
int rootDirEntries
int rootDirSectors
int total16
long total32
long totalSectors
int fatSz16
long fatSz32
long fatSz
int reservedSectors
int fatCount
long dataSectors
long clusterCount
de.waldheinz.fs.fat.BootSector result
public abstract de.waldheinz.fs.fat.FatType getFatType ()
public abstract long getSectorsPerFat ()
public abstract void setSectorsPerFat (long)
public abstract void setSectorCount (long)
public abstract int getRootDirEntryCount ()
public abstract long getSectorCount ()
public abstract int getFileSystemTypeLabelOffset ()
public abstract int getExtendedBootSignatureOffset ()
public void init () throws java.io.IOException
public java.lang.String getFileSystemTypeLabel ()
int i
StringBuilder sb
public void setFileSystemTypeLabel (java.lang.String) throws java.lang.IllegalArgumentException
int i
String fsType
public final long getDataClusterCount ()
private long getDataSize ()
public java.lang.String getOemName ()
int v
int i
StringBuilder b
public void setOemName (java.lang.String)
char ch
char ch
int i
String name
public int getBytesPerSector ()
public void setBytesPerSector (int)
int v
private static boolean isPowerOfTwo (int)
int n
public int getBytesPerCluster ()
public int getSectorsPerCluster ()
public void setSectorsPerCluster (int)
int v
public int getNrReservedSectors ()
public void setNrReservedSectors (int)
int v
public final int getNrFats ()
public final void setNrFats (int)
int v
protected int getNrLogicalSectors ()
protected void setNrLogicalSectors (int)
int v
protected void setNrTotalSectors (long)
long v
protected long getNrTotalSectors ()
public int getMediumDescriptor ()
public void setMediumDescriptor (int)
int v
public int getSectorsPerTrack ()
public void setSectorsPerTrack (int)
int v
public int getNrHeads ()
public void setNrHeads (int)
int v
public long getNrHiddenSectors ()
public void setNrHiddenSectors (long)
long v
public java.lang.String toString ()
StringBuilder res
public volatile de.waldheinz.fs.BlockDevice getDevice ()
}
de/waldheinz/fs/fat/FatFileSystem.classFatFileSystem.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.FatFileSystem extends de.waldheinz.fs.AbstractFileSystem {
private final de.waldheinz.fs.fat.Fat fat
private final de.waldheinz.fs.fat.FsInfoSector fsiSector
private final de.waldheinz.fs.fat.BootSector bs
private final de.waldheinz.fs.fat.FatLfnDirectory rootDir
private final de.waldheinz.fs.fat.AbstractDirectory rootDirStore
private final de.waldheinz.fs.fat.FatType fatType
private final long filesOffset
void (de.waldheinz.fs.BlockDevice, boolean) throws java.io.IOException
de.waldheinz.fs.BlockDevice api
boolean readOnly
private void (de.waldheinz.fs.BlockDevice, boolean, boolean) throws java.io.IOException
de.waldheinz.fs.fat.Fat tmpFat
int i
de.waldheinz.fs.fat.Fat32BootSector f32bs
de.waldheinz.fs.fat.ClusterChain rootDirFile
de.waldheinz.fs.BlockDevice device
boolean readOnly
boolean ignoreFatDifferences
public static de.waldheinz.fs.fat.FatFileSystem read (de.waldheinz.fs.BlockDevice, boolean) throws java.io.IOException
de.waldheinz.fs.BlockDevice device
boolean readOnly
long getFilesOffset ()
public de.waldheinz.fs.fat.FatType getFatType ()
public java.lang.String getVolumeLabel ()
String fromDir
public void setVolumeLabel (java.lang.String) throws de.waldheinz.fs.ReadOnlyException java.io.IOException
String label
de.waldheinz.fs.fat.AbstractDirectory getRootDirStore ()
public void flush () throws java.io.IOException
int i
public de.waldheinz.fs.fat.FatLfnDirectory getRoot ()
public de.waldheinz.fs.fat.Fat getFat ()
public de.waldheinz.fs.fat.BootSector getBootSector ()
public long getFreeSpace ()
public long getTotalSpace ()
public long getUsableSpace ()
public volatile de.waldheinz.fs.FsDirectory getRoot () throws java.io.IOException
}
de/waldheinz/fs/fat/FatDirectoryEntry.classFatDirectoryEntry.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.FatDirectoryEntry extends de.waldheinz.fs.AbstractFsObject {
public static final int SIZE
private static final int OFFSET_ATTRIBUTES
private static final int OFFSET_FILE_SIZE
private static final int F_READONLY
private static final int F_HIDDEN
private static final int F_SYSTEM
private static final int F_VOLUME_ID
private static final int F_DIRECTORY
private static final int F_ARCHIVE
private static final int MAX_CLUSTER
public static final int ENTRY_DELETED_MAGIC
private final byte[] data
private boolean dirty
boolean hasShortNameOnly
static final boolean $assertionsDisabled
void (byte[], boolean)
byte[] data
boolean readOnly
private void ()
public static de.waldheinz.fs.fat.FatDirectoryEntry read (java.nio.ByteBuffer, boolean)
java.nio.ByteBuffer buff
boolean readOnly
byte[] data
public static void writeNullEntry (java.nio.ByteBuffer)
int i
java.nio.ByteBuffer buff
public boolean isVolumeLabel ()
private void setFlag (int, boolean)
int mask
boolean set
int oldFlags
public boolean isSystemFlag ()
public void setSystemFlag (boolean)
boolean isSystem
public boolean isArchiveFlag ()
public void setArchiveFlag (boolean)
boolean isArchive
public boolean isHiddenFlag ()
public void setHiddenFlag (boolean)
boolean isHidden
public boolean isVolumeIdFlag ()
public boolean isLfnEntry ()
public boolean isDirty ()
private int getFlags ()
private void setFlags (int)
int flags
public boolean isDirectory ()
public static de.waldheinz.fs.fat.FatDirectoryEntry create (boolean)
boolean directory
de.waldheinz.fs.fat.FatDirectoryEntry result
long now
public static de.waldheinz.fs.fat.FatDirectoryEntry createVolumeLabel (java.lang.String)
String volumeLabel
byte[] data
de.waldheinz.fs.fat.FatDirectoryEntry result
public java.lang.String getVolumeLabel ()
byte b
int i
StringBuilder sb
public long getCreated ()
public void setCreated (long)
long created
public long getLastModified ()
public void setLastModified (long)
long lastModified
public long getLastAccessed ()
public void setLastAccessed (long)
long lastAccessed
public boolean isDeleted ()
public long getLength ()
public void setLength (long) throws java.lang.IllegalArgumentException
long length
public de.waldheinz.fs.fat.ShortName getShortName ()
public boolean isFile ()
public void setShortName (de.waldheinz.fs.fat.ShortName)
de.waldheinz.fs.fat.ShortName sn
public long getStartCluster ()
int lowBytes
long highBytes
void setStartCluster (long)
long startCluster
public java.lang.String toString ()
void write (java.nio.ByteBuffer)
java.nio.ByteBuffer buff
public boolean isReadonlyFlag ()
public void setReadonlyFlag (boolean)
boolean isReadonly
java.lang.String getLfnPart ()
char[] unicodechar
int end
static void ()
}
de/waldheinz/fs/fat/FatType.classFatType.java
package de.waldheinz.fs.fat
public abstract de.waldheinz.fs.fat.FatType extends java.lang.Enum {
public static final de.waldheinz.fs.fat.FatType FAT12
public static final de.waldheinz.fs.fat.FatType FAT16
public static final de.waldheinz.fs.fat.FatType FAT32
private final long minReservedEntry
private final long maxReservedEntry
private final long eofCluster
private final long eofMarker
private final long bitMask
private final int maxClusters
private final String label
private final float entrySize
private static final de.waldheinz.fs.fat.FatType[] $VALUES
public static de.waldheinz.fs.fat.FatType[] values ()
public static de.waldheinz.fs.fat.FatType valueOf (java.lang.String)
String name
private void (java.lang.String, int, int, long, float, java.lang.String)
int maxClusters
long bitMask
float entrySize
String label
abstract long readEntry (byte[], int)
abstract void writeEntry (byte[], int, long)
long maxClusters ()
java.lang.String getLabel ()
boolean isReservedCluster (long)
long entry
boolean isEofCluster (long)
long entry
long getEofMarker ()
float getEntrySize ()
long getBitMask ()
void (java.lang.String, int, int, long, float, java.lang.String, de.waldheinz.fs.fat.FatType$1)
String x0
int x1
int x2
long x3
float x4
String x5
de.waldheinz.fs.fat.FatType$1 x6
static void ()
}
de/waldheinz/fs/fat/LittleEndian.classLittleEndian.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.LittleEndian extends java.lang.Object {
private void ()
public static int getUInt8 (byte[], int)
byte[] src
int offset
public static int getUInt16 (byte[], int)
byte[] src
int offset
int v0
int v1
public static long getUInt32 (byte[], int)
byte[] src
int offset
long v0
long v1
long v2
long v3
public static void setInt8 (byte[], int, int)
byte[] dst
int offset
int value
public static void setInt16 (byte[], int, int)
byte[] dst
int offset
int value
public static void setInt32 (byte[], int, long) throws java.lang.IllegalArgumentException
byte[] dst
int offset
long value
}
de/waldheinz/fs/fat/Fat16RootDirectory.classFat16RootDirectory.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.Fat16RootDirectory extends de.waldheinz.fs.fat.AbstractDirectory {
private final de.waldheinz.fs.BlockDevice device
private final long deviceOffset
private void (de.waldheinz.fs.fat.Fat16BootSector, boolean)
de.waldheinz.fs.fat.Fat16BootSector bs
boolean readOnly
public static de.waldheinz.fs.fat.Fat16RootDirectory read (de.waldheinz.fs.fat.Fat16BootSector, boolean) throws java.io.IOException
de.waldheinz.fs.fat.Fat16BootSector bs
boolean readOnly
de.waldheinz.fs.fat.Fat16RootDirectory result
public static de.waldheinz.fs.fat.Fat16RootDirectory create (de.waldheinz.fs.fat.Fat16BootSector) throws java.io.IOException
de.waldheinz.fs.fat.Fat16BootSector bs
de.waldheinz.fs.fat.Fat16RootDirectory result
protected void read (java.nio.ByteBuffer) throws java.io.IOException
java.nio.ByteBuffer data
protected void write (java.nio.ByteBuffer) throws java.io.IOException
java.nio.ByteBuffer data
protected long getStorageCluster ()
protected void changeSize (int) throws de.waldheinz.fs.fat.DirectoryFullException
int entryCount
}
de/waldheinz/fs/fat/ClusterChainDirectory.classClusterChainDirectory.java
package de.waldheinz.fs.fat
de.waldheinz.fs.fat.ClusterChainDirectory extends de.waldheinz.fs.fat.AbstractDirectory {
public static final int MAX_SIZE
final de.waldheinz.fs.fat.ClusterChain chain
static final boolean $assertionsDisabled
protected void (de.waldheinz.fs.fat.ClusterChain, boolean)
de.waldheinz.fs.fat.ClusterChain chain
boolean isRoot
public static de.waldheinz.fs.fat.ClusterChainDirectory readRoot (de.waldheinz.fs.fat.ClusterChain) throws java.io.IOException
de.waldheinz.fs.fat.ClusterChain chain
de.waldheinz.fs.fat.ClusterChainDirectory result
public static de.waldheinz.fs.fat.ClusterChainDirectory createRoot (de.waldheinz.fs.fat.Fat) throws java.io.IOException
de.waldheinz.fs.fat.Fat fat
de.waldheinz.fs.fat.Fat32BootSector bs
de.waldheinz.fs.fat.ClusterChain cc
de.waldheinz.fs.fat.ClusterChainDirectory result
protected final void read (java.nio.ByteBuffer) throws java.io.IOException
java.nio.ByteBuffer data
protected final void write (java.nio.ByteBuffer) throws java.io.IOException
int rest
java.nio.ByteBuffer fill
java.nio.ByteBuffer data
int toWrite
long trueSize
protected final long getStorageCluster ()
public final void delete () throws java.io.IOException
protected final void changeSize (int) throws java.io.IOException java.lang.IllegalArgumentException
int entryCount
int size
static void ()
}
de/waldheinz/fs/fat/DosUtils.classDosUtils.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.DosUtils extends java.lang.Object {
private void ()
public static long decodeDateTime (int, int)
int dosDate
int dosTime
java.util.Calendar cal
public static int encodeTime (long)
long javaDateTime
java.util.Calendar cal
public static int encodeDate (long)
long javaDateTime
java.util.Calendar cal
}
de/waldheinz/fs/fat/DirectoryFullException.classDirectoryFullException.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.DirectoryFullException extends java.io.IOException {
private static final long serialVersionUID
private final int currentCapacity
private final int requestedCapacity
void (int, int)
int currentCapacity
int requestedCapacity
void (java.lang.String, int, int)
String message
int currentCapacity
int requestedCapacity
public int getCurrentCapacity ()
public int getRequestedCapacity ()
}
de/waldheinz/fs/fat/FatFile.classFatFile.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.FatFile extends de.waldheinz.fs.AbstractFsObject implements de.waldheinz.fs.FsFile {
private final de.waldheinz.fs.fat.FatDirectoryEntry entry
private final de.waldheinz.fs.fat.ClusterChain chain
private void (de.waldheinz.fs.fat.FatDirectoryEntry, de.waldheinz.fs.fat.ClusterChain)
de.waldheinz.fs.fat.FatDirectoryEntry myEntry
de.waldheinz.fs.fat.ClusterChain chain
static de.waldheinz.fs.fat.FatFile get (de.waldheinz.fs.fat.Fat, de.waldheinz.fs.fat.FatDirectoryEntry) throws java.io.IOException
de.waldheinz.fs.fat.Fat fat
de.waldheinz.fs.fat.FatDirectoryEntry entry
de.waldheinz.fs.fat.ClusterChain cc
public long getLength ()
public void setLength (long) throws de.waldheinz.fs.ReadOnlyException java.io.IOException
long length
public void read (long, java.nio.ByteBuffer) throws java.io.IOException
long offset
java.nio.ByteBuffer dest
int len
public void write (long, java.nio.ByteBuffer) throws de.waldheinz.fs.ReadOnlyException java.io.IOException
long offset
java.nio.ByteBuffer srcBuf
long lastByte
private void updateTimeStamps (boolean)
boolean write
long now
public void flush () throws de.waldheinz.fs.ReadOnlyException
de.waldheinz.fs.fat.ClusterChain getChain ()
public java.lang.String toString ()
}
de/waldheinz/fs/fat/SuperFloppyFormatter$1.classSuperFloppyFormatter.java
package de.waldheinz.fs.fat
de.waldheinz.fs.fat.SuperFloppyFormatter$1 extends java.lang.Object {
static final int[] $SwitchMap$de$waldheinz$fs$fat$FatType
static void ()
NoSuchFieldError ex
NoSuchFieldError ex
NoSuchFieldError ex
}
de/waldheinz/fs/fat/Dummy83BufferGenerator.classDummy83BufferGenerator.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.Dummy83BufferGenerator extends java.lang.Object {
final java.security.SecureRandom mRandom
private static final char[] invalidchar
public void ()
public static boolean validChar (char)
char toTest
public static boolean isSkipChar (char)
char c
public static java.lang.String tidyString (java.lang.String)
char toTest
int src
String dirty
StringBuilder result
public static boolean cleanString (java.lang.String)
int i
String s
public static java.lang.String stripLeadingPeriods (java.lang.String)
int i
String str
StringBuilder sb
public de.waldheinz.fs.fat.ShortName generate83BufferNew (java.lang.String) throws java.lang.IllegalStateException
int i
int slash_pos
int randomNumber
String longFullName
char[] retBuffer
boolean hasRealShortName
de.waldheinz.fs.fat.ShortName retName
static void ()
}
de/waldheinz/fs/fat/Sector.classSector.java
package de.waldheinz.fs.fat
de.waldheinz.fs.fat.Sector extends java.lang.Object {
private final de.waldheinz.fs.BlockDevice device
private final long offset
protected final java.nio.ByteBuffer buffer
private boolean dirty
protected void (de.waldheinz.fs.BlockDevice, long, int)
de.waldheinz.fs.BlockDevice device
long offset
int size
protected void read () throws java.io.IOException
public final boolean isDirty ()
protected final void markDirty ()
public de.waldheinz.fs.BlockDevice getDevice ()
public final void write () throws java.io.IOException
protected int get16 (int)
int offset
protected long get32 (int)
int offset
protected int get8 (int)
int offset
protected void set16 (int, int)
int offset
int value
protected void set32 (int, long)
int offset
long value
protected void set8 (int, int)
int offset
int value
protected long getOffset ()
}
de/waldheinz/fs/fat/SuperFloppyFormatter.classSuperFloppyFormatter.java
package de.waldheinz.fs.fat
public final de.waldheinz.fs.fat.SuperFloppyFormatter extends java.lang.Object {
public static final int MEDIUM_DESCRIPTOR_HD
public static final int DEFAULT_FAT_COUNT
public static final int DEFAULT_SECTORS_PER_TRACK
public static final int DEFAULT_HEADS
public static final int DEFULT_HEADS
public static final String DEFAULT_OEM_NAME
private static final int MAX_DIRECTORY
private final de.waldheinz.fs.BlockDevice device
private String label
private String oemName
private de.waldheinz.fs.fat.FatType fatType
private int sectorsPerCluster
private int reservedSectors
private int fatCount
private static int MAX_FAT32_CLUSTERS
private static int MAX_FAT16_CLUSTERS
private void (de.waldheinz.fs.BlockDevice) throws java.io.IOException
de.waldheinz.fs.BlockDevice device
public static de.waldheinz.fs.fat.SuperFloppyFormatter get (de.waldheinz.fs.BlockDevice) throws java.io.IOException
de.waldheinz.fs.BlockDevice dev
public java.lang.String getOemName ()
public de.waldheinz.fs.fat.SuperFloppyFormatter setOemName (java.lang.String)
String oemName
public de.waldheinz.fs.fat.SuperFloppyFormatter setVolumeLabel (java.lang.String)
String label
public java.lang.String getVolumeLabel ()
private void initBootSector (de.waldheinz.fs.fat.BootSector) throws java.io.IOException
de.waldheinz.fs.fat.BootSector bs
public de.waldheinz.fs.fat.FatFileSystem format () throws java.io.IOException
de.waldheinz.fs.fat.Fat32BootSector f32bs
java.util.Random rnd
de.waldheinz.fs.fat.FsInfoSector fsi
de.waldheinz.fs.fat.BootSector bs
de.waldheinz.fs.fat.Fat16BootSector f16bs
int rootDirEntries
de.waldheinz.fs.fat.Fat32BootSector f32bs
de.waldheinz.fs.fat.AbstractDirectory rootDirStore
int i
int sectorSize
int totalSectors
de.waldheinz.fs.fat.FsInfoSector fsi
de.waldheinz.fs.fat.BootSector bs
de.waldheinz.fs.fat.Fat fat
de.waldheinz.fs.fat.AbstractDirectory rootDirStore
de.waldheinz.fs.fat.FatLfnDirectory rootDir
de.waldheinz.fs.fat.FatFileSystem fs
private int sectorsPerFat (int, int) throws java.io.IOException
int rootDirEntries
int totalSectors
int bps
int rootDirSectors
long tmp1
int tmp2
int result
private de.waldheinz.fs.fat.FatType fatTypeFromDevice () throws java.io.IOException
public static de.waldheinz.fs.fat.FatType fatTypeFromSize (long)
long sizeInBytes
long sizeInMb
public static int clusterSizeFromSize (long, int)
long sizeInBytes
int sectorSize
public de.waldheinz.fs.fat.FatType getFatType ()
public de.waldheinz.fs.fat.SuperFloppyFormatter setFatType (de.waldheinz.fs.fat.FatType) throws java.io.IOException java.lang.IllegalArgumentException
de.waldheinz.fs.fat.FatType fatType
private static int rootDirectorySize (int, int)
int bps
int nbTotalSectors
int totalSize
private static int sectorsPerCluster32FromSize (long, int)
long size
int sectorSize
long sectors
private int sectorsPerCluster32 () throws java.io.IOException
long sectors
private static int sectorsPerCluster16FromSize (long, int)
long size
int sectorSize
long sectors
private int sectorsPerCluster16 () throws java.io.IOException
long size
int sectorSize
private int defaultSectorsPerCluster (de.waldheinz.fs.fat.FatType) throws java.io.IOException
de.waldheinz.fs.fat.FatType fatType
long size
int sectorSize
private static int sectorsPerCluster12 (long, int)
long size
int sectorSize
int result
long sectors
static void ()
}
de/waldheinz/fs/fat/FatLfnDirectory$1.classFatLfnDirectory.java
package de.waldheinz.fs.fat
de.waldheinz.fs.fat.FatLfnDirectory$1 extends java.lang.Object implements java.util.Iterator {
final java.util.Iterator it
final de.waldheinz.fs.fat.FatLfnDirectory this$0
void (de.waldheinz.fs.fat.FatLfnDirectory)
public boolean hasNext ()
public de.waldheinz.fs.FsDirectoryEntry next ()
public void remove ()
public volatile java.lang.Object next ()
}
de/waldheinz/fs/fat/FsInfoSector.classFsInfoSector.java
package de.waldheinz.fs.fat
final de.waldheinz.fs.fat.FsInfoSector extends de.waldheinz.fs.fat.Sector {
public static final int FREE_CLUSTERS_OFFSET
public static final int LAST_ALLOCATED_OFFSET
public static final int SIGNATURE_OFFSET
private void (de.waldheinz.fs.BlockDevice, long)
de.waldheinz.fs.BlockDevice device
long offset
public static de.waldheinz.fs.fat.FsInfoSector read (de.waldheinz.fs.fat.Fat32BootSector) throws java.io.IOException
de.waldheinz.fs.fat.Fat32BootSector bs
de.waldheinz.fs.fat.FsInfoSector result
public static de.waldheinz.fs.fat.FsInfoSector create (de.waldheinz.fs.fat.Fat32BootSector) throws java.io.IOException
de.waldheinz.fs.fat.Fat32BootSector bs
int offset
de.waldheinz.fs.fat.FsInfoSector result
private static int offset (de.waldheinz.fs.fat.Fat32BootSector)
de.waldheinz.fs.fat.Fat32BootSector bs
public void setFreeClusterCount (long)
long value
public long getFreeClusterCount ()
public void setLastAllocatedCluster (long)
long value
public long getLastAllocatedCluster ()
private void init ()
private void verify () throws java.io.IOException
public java.lang.String toString ()
}
de/waldheinz/fs/fat/AbstractDirectory.classAbstractDirectory.java
package de.waldheinz.fs.fat
abstract de.waldheinz.fs.fat.AbstractDirectory extends java.lang.Object {
public static final int MAX_LABEL_LENGTH
private final java.util.List entries
private final boolean readOnly
private final boolean isRoot
private boolean dirty
private int capacity
private String volumeLabel
static final boolean $assertionsDisabled
protected void (int, boolean, boolean)
int capacity
boolean readOnly
boolean isRoot
protected abstract void read (java.nio.ByteBuffer) throws java.io.IOException
protected abstract void write (java.nio.ByteBuffer) throws java.io.IOException
protected abstract long getStorageCluster ()
protected abstract void changeSize (int) throws de.waldheinz.fs.fat.DirectoryFullException java.io.IOException
public void setEntries (java.util.List)
java.util.List newEntries
protected final void sizeChanged (long) throws java.io.IOException
long newSize
long newCount
public final de.waldheinz.fs.fat.FatDirectoryEntry getEntry (int)
int idx
public final int getCapacity ()
public final int getEntryCount ()
public boolean isReadOnly ()
public final boolean isRoot ()
public int getSize ()
protected final void setDirty ()
private void checkRoot () throws java.lang.UnsupportedOperationException
private void resetDirty ()
public void flush () throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry entry
int i
de.waldheinz.fs.fat.FatDirectoryEntry labelEntry
java.nio.ByteBuffer data
protected final void read () throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry e
int i
java.nio.ByteBuffer data
public void addEntry (de.waldheinz.fs.fat.FatDirectoryEntry) throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry e
public void addEntries (de.waldheinz.fs.fat.FatDirectoryEntry[]) throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry[] entries
public void removeEntry (de.waldheinz.fs.fat.FatDirectoryEntry) throws java.io.IOException
de.waldheinz.fs.fat.FatDirectoryEntry entry
public java.lang.String getLabel () throws java.lang.UnsupportedOperationException
public de.waldheinz.fs.fat.FatDirectoryEntry createSub (de.waldheinz.fs.fat.Fat) throws java.io.IOException
de.waldheinz.fs.fat.Fat fat
de.waldheinz.fs.fat.ClusterChain chain
de.waldheinz.fs.fat.FatDirectoryEntry entry
de.waldheinz.fs.fat.ClusterChainDirectory dir
de.waldheinz.fs.fat.FatDirectoryEntry dot
de.waldheinz.fs.fat.FatDirectoryEntry dotDot
private static void copyDateTimeFields (de.waldheinz.fs.fat.FatDirectoryEntry, de.waldheinz.fs.fat.FatDirectoryEntry)
de.waldheinz.fs.fat.FatDirectoryEntry src
de.waldheinz.fs.fat.FatDirectoryEntry dst
public void setLabel (java.lang.String) throws java.lang.IllegalArgumentException java.lang.UnsupportedOperationException java.io.IOException
String label
static void ()
}