mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2025-01-02 06:31:03 +00:00
binary2 summary
This commit is contained in:
parent
b7106787d1
commit
90f8657722
@ -73,11 +73,12 @@ public class Binary2
|
||||
{
|
||||
StringBuilder text = new StringBuilder ();
|
||||
|
||||
text.append (String.format (" %-15.15s Recs:%5d%n%n",
|
||||
text.append (String.format (
|
||||
" %-15.15s Files:%5d%n%n",
|
||||
fileName, headers.size ()));
|
||||
|
||||
text.append (" Name Type Auxtyp Modified"
|
||||
+ " Fmat Length\n");
|
||||
text.append (" Name Type Auxtyp Modified"
|
||||
+ " Fmat Length\n");
|
||||
|
||||
text.append (String.format ("%s%n", UNDERLINE));
|
||||
|
||||
|
@ -1,6 +1,9 @@
|
||||
package com.bytezone.diskbrowser.utilities;
|
||||
|
||||
import static com.bytezone.diskbrowser.prodos.ProdosConstants.fileTypes;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
import com.bytezone.diskbrowser.prodos.write.ProdosDisk;
|
||||
|
||||
@ -8,6 +11,7 @@ import com.bytezone.diskbrowser.prodos.write.ProdosDisk;
|
||||
public class Binary2Header
|
||||
// -----------------------------------------------------------------------------------//
|
||||
{
|
||||
static DateTimeFormatter formatter = DateTimeFormatter.ofPattern ("dd-LLL-yy HH:mm");
|
||||
static String[] osTypes =
|
||||
{ "Prodos", "DOS 3.3", "Reserved", "DOS 3.2 or 3.1", "Pascal", "Macintosh MFS",
|
||||
"Macintosh HFS", "Lisa", "CPM", "Reserved", "MS-DOS", "High Sierra (CD-ROM)",
|
||||
@ -83,7 +87,8 @@ public class Binary2Header
|
||||
public String getLine ()
|
||||
// ---------------------------------------------------------------------------------//
|
||||
{
|
||||
return String.format ("%s ", fileName);
|
||||
return String.format (" %-33s %3s $%04X %s unc %7d", fileName,
|
||||
fileTypes[fileType], auxType, modified.format (formatter), eof);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------//
|
||||
|
Loading…
Reference in New Issue
Block a user