MCPcopy Create free account
hub / github.com/davidgiven/luje / canEncode

Method canEncode

lib/java/nio/charset/CharsetEncoder.java:219–221  ·  view source on GitHub ↗

Checks if the given character can be encoded by this encoder. Note that this method can change the internal status of this encoder, so it should not be called when another encoding process is ongoing, otherwise it will throw an IllegalStateException . This method can be overridde

(char c)

Source from the content-addressed store, hash-verified

217 * internal status is neither RESET or FLUSH.
218 */
219 public boolean canEncode(char c) {
220 return implCanEncode(CharBuffer.wrap(new char[] { c }));
221 }
222
223 // implementation of canEncode
224 private boolean implCanEncode(CharBuffer cb) {

Callers

nothing calls this directly

Calls 3

implCanEncodeMethod · 0.95
wrapMethod · 0.95
duplicateMethod · 0.45

Tested by

no test coverage detected