/[classpath]/classpath/java/nio/charset/Charset.java
ViewVC logotype

Diff of /classpath/java/nio/charset/Charset.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by rschuster, Fri Feb 18 01:35:46 2005 UTC revision 1.16 by smarothy, Sat Apr 9 03:21:27 2005 UTC
# Line 296  public abstract class Charset implements Line 296  public abstract class Charset implements
296                  cachedEncoder = newEncoder ()                  cachedEncoder = newEncoder ()
297                    .onMalformedInput (CodingErrorAction.REPLACE)                    .onMalformedInput (CodingErrorAction.REPLACE)
298                    .onUnmappableCharacter (CodingErrorAction.REPLACE);                    .onUnmappableCharacter (CodingErrorAction.REPLACE);
299                }                } else
300                    cachedEncoder.reset();
301              return cachedEncoder.encode (cb);              return cachedEncoder.encode (cb);
302            }            }
303        }        }
# Line 327  public abstract class Charset implements Line 327  public abstract class Charset implements
327                  cachedDecoder = newDecoder ()                  cachedDecoder = newDecoder ()
328                    .onMalformedInput (CodingErrorAction.REPLACE)                    .onMalformedInput (CodingErrorAction.REPLACE)
329                    .onUnmappableCharacter (CodingErrorAction.REPLACE);                    .onUnmappableCharacter (CodingErrorAction.REPLACE);
330                }                } else
331                    cachedDecoder.reset();
332    
333              return cachedDecoder.decode (bb);              return cachedDecoder.decode (bb);
334            }            }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26