Lines Matching refs:enc
110 CharsetEncoder enc = getEncoder(charBuf[0]);
111 //System.out.println("char=" + charBuf[0] + ", enc=" + enc);
112 if (enc == null) {
116 enc = latin1Encoder;
121 if (enc != encoder) {
131 getEscapeSequence(enc.charset().name());
134 enc.charset().name());
137 initNonStandardCharsetBuffer(enc, escSequence);
143 encoder = enc;
318 CharsetEncoder enc = encodingToEncoderMap.get(encoding);
319 if (enc == null) {
320 enc = CompoundTextSupport.getEncoder(encoding);
321 if (enc == null) {
325 encodingToEncoderMap.put(encoding, enc);
327 if (enc.canEncode(ch)) {
337 private void initEncoder(CharsetEncoder enc) {
339 enc.onUnmappableCharacter(CodingErrorAction.REPLACE)
345 private CoderResult flushEncoder(CharsetEncoder enc, ByteBuffer bb) {
346 enc.encode(fcb, bb, true);
347 return enc.flush(bb);