MCPcopy Create free account
hub / github.com/BaseXdb/basex / name

Method name

basex-core/src/main/java/org/basex/io/in/TarEntry.java:95–103  ·  view source on GitHub ↗

Converts a byte list to a file name. @param result byte list @return file name

(final ByteList result)

Source from the content-addressed store, hash-verified

93 * @return file name
94 */
95 static String name(final ByteList result) {
96 try {
97 return new String(result.toArray(), Prop.CHARSET);
98 } catch(final Exception ex) {
99 // fallback: UTF8
100 Util.debug(ex);
101 return result.toString();
102 }
103 }
104
105 @Override
106 public String toString() {

Callers 2

TarEntryMethod · 0.95
longNameMethod · 0.95

Calls 3

debugMethod · 0.95
toStringMethod · 0.65
toArrayMethod · 0.45

Tested by

no test coverage detected