當前位置: 首頁>>代碼示例>>Java>>正文


Java FatUtils類代碼示例

本文整理匯總了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);
}
 
開發者ID:compilelab,項目名稱:obb-storage,代碼行數:39,代碼來源:ObbExtractor.java


注:本文中的de.waldheinz.fs.fat.FatUtils類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。