MCPcopy Create free account
hub / github.com/apache/nutch / toString

Method toString

src/java/org/apache/nutch/util/Bytes.java:295–298  ·  view source on GitHub ↗

This method will convert utf8 encoded bytes into a string. If an UnsupportedEncodingException occurs, this method will eat it and return null instead. @param bb Presumed UTF-8 encoded ByteBuffer. @return String made from b or null

(ByteBuffer bb)

Source from the content-addressed store, hash-verified

293 * @return String made from <code>b</code> or null
294 */
295 public static String toString(ByteBuffer bb) {
296 return bb == null ? null : toString(bb.array(),
297 bb.arrayOffset() + bb.position(), bb.remaining());
298 }
299
300 /**
301 * @param b

Callers 15

filterMethod · 0.95
getParseMethod · 0.95
getMetaMethod · 0.95
testEncodingDetectionMethod · 0.95
pageTestMethod · 0.95
filterMethod · 0.95
testMetaHTMLParsingMethod · 0.95
detectLanguageMethod · 0.95
filterMethod · 0.95
filterMethod · 0.95
filterMethod · 0.95
filterMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by 15

getMetaMethod · 0.76
testEncodingDetectionMethod · 0.76
pageTestMethod · 0.76
testMetaHTMLParsingMethod · 0.76
testFetchMethod · 0.76
testSitemapFetchMethod · 0.76
testSitemapInjectMethod · 0.76
readDbMethod · 0.76
getPluginFolderMethod · 0.36
readWriteMethod · 0.36
callMethod · 0.36
writeReadMethod · 0.36