enum VerboseFormatter extends java.lang.Enum<VerboseFormatter> implements Formatter
Formatter
implementation to provide an "ls -l"-esque output for an Archive
, listing all internal
contents in sorted orderEnum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
ROOT
Root character "/"
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(Archive<?> archive)
Returns a formatted view of the specified archive
|
private void |
format(java.lang.StringBuilder sb,
Node node) |
static VerboseFormatter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VerboseFormatter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VerboseFormatter INSTANCE
private static final java.lang.String ROOT
public static VerboseFormatter[] values()
for (VerboseFormatter c : VerboseFormatter.values()) System.out.println(c);
public static VerboseFormatter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String format(Archive<?> archive) throws java.lang.IllegalArgumentException
Formatter
private void format(java.lang.StringBuilder sb, Node node)