本文整理汇总了Java中de.waldheinz.fs.fat.FatUtils类的典型用法代码示例。如果您正苦于以下问题:Java FatUtils类的具体用法?Java FatUtils怎么用?Java FatUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FatUtils类属于de.waldheinz.fs.fat包,在下文中一共展示了FatUtils类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: printVerboseInfo
import de.waldheinz.fs.fat.FatUtils; //导入依赖的package包/类
private void printVerboseInfo(BootSector bs, FsDirectory rootDir) {
System.out.print("Filesystem Type: ");
FatType ft = bs.getFatType();
if (ft == FatType.FAT32) {
System.out.println("FAT32");
} else if (ft == FatType.FAT16) {
System.out.println("FAT16");
} else if (ft == FatType.FAT12) {
System.out.println("FAT12");
} else {
System.out.println("Unknown");
}
System.out.print(" OEM Name: ");
System.out.println(bs.getOemName());
System.out.print(" Bytes Per Sector: ");
System.out.println(bs.getBytesPerSector());
System.out.print("Sectors per cluster: ");
System.out.println(bs.getSectorsPerCluster());
System.out.print(" Reserved Sectors: ");
System.out.println(bs.getNrReservedSectors());
System.out.print(" Fats: ");
System.out.println(bs.getNrFats());
System.out.print(" Root Dir Entries: ");
System.out.println(bs.getRootDirEntryCount());
System.out.print(" Medium Descriptor: ");
System.out.println(bs.getMediumDescriptor());
System.out.print(" Sectors: ");
System.out.println(bs.getSectorCount());
System.out.print(" Sectors Per Fat: ");
System.out.println(bs.getSectorsPerFat());
System.out.print(" Heads: ");
System.out.println(bs.getNrHeads());
System.out.print(" Hidden Sectors: ");
System.out.println(bs.getNrHiddenSectors());
System.out.print(" Fat Offset: ");
System.out.println(FatUtils.getFatOffset(bs, 0));
System.out.println(" RootDir: " + rootDir);
}