MCPcopy Create free account
hub / github.com/apache/ant / encode

Method encode

src/main/org/apache/tools/zip/ZipEncoding.java:76–76  ·  view source on GitHub ↗

Encode a filename or a comment to a byte array suitable for storing it to a serialized zip entry. Examples for CP 437 (in pseudo-notation, right hand side is C-style notation): encode("\u20AC_for_Dollar.txt") = "%U20AC_for_Dollar.txt" encode("\u00D6lf\u00E4sser.txt") = "\231lf\204sse

(String name)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

createTestFileMethod · 0.95
assertUnicodeNameMethod · 0.95
doSimpleEncodingTestMethod · 0.95
encodeMethod · 0.65
addUnicodeExtraFieldsMethod · 0.65
getBytesMethod · 0.65
getNameMethod · 0.65
attachMethod · 0.65
executeMethod · 0.65
fillBufferMethod · 0.65

Implementers 4

Simple8BitZipEncodingsrc/main/org/apache/tools/zip/Simple8B
FallbackZipEncodingsrc/main/org/apache/tools/zip/Fallback
NioZipEncodingsrc/main/org/apache/tools/zip/NioZipEn
TarUtilssrc/main/org/apache/tools/tar/TarUtils

Calls

no outgoing calls

Tested by 7

createTestFileMethod · 0.76
assertUnicodeNameMethod · 0.76
doSimpleEncodingTestMethod · 0.76
testEncodeMethod · 0.52
testOneValueMethod · 0.52
testHelloWorldMethod · 0.52
doitMethod · 0.52