< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/internal/InputStreamReader.java

Print this page


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jline.internal;
  10 
  11 import java.io.IOException;
  12 import java.io.InputStream;
  13 import java.io.OutputStreamWriter;
  14 import java.io.Reader;
  15 import java.io.UnsupportedEncodingException;
  16 import java.nio.ByteBuffer;
  17 import java.nio.CharBuffer;
  18 import java.nio.charset.Charset;
  19 import java.nio.charset.CharsetDecoder;
  20 import java.nio.charset.CoderResult;
  21 import java.nio.charset.CodingErrorAction;
  22 import java.nio.charset.MalformedInputException;
  23 import java.nio.charset.UnmappableCharacterException;
  24 
  25 
  26 /**
  27  *
  28  * NOTE for JLine: the default InputStreamReader that comes from the JRE
  29  * usually read more bytes than needed from the input stream, which


   1 /*
   2  * Copyright (c) 2002-2012, the original author or authors.
   3  *
   4  * This software is distributable under the BSD license. See the terms of the
   5  * BSD license in the documentation provided with this software.
   6  *
   7  * http://www.opensource.org/licenses/bsd-license.php
   8  */
   9 package jdk.internal.jline.internal;
  10 
  11 import java.io.IOException;
  12 import java.io.InputStream;
  13 import java.io.OutputStreamWriter;
  14 import java.io.Reader;
  15 import java.io.UnsupportedEncodingException;
  16 import java.nio.ByteBuffer;
  17 import java.nio.CharBuffer;
  18 import java.nio.charset.Charset;
  19 import java.nio.charset.CharsetDecoder;
  20 import java.nio.charset.CoderResult;
  21 import java.nio.charset.CodingErrorAction;
  22 import java.nio.charset.MalformedInputException;
  23 import java.nio.charset.UnmappableCharacterException;
  24 
  25 
  26 /**
  27  *
  28  * NOTE for JLine: the default InputStreamReader that comes from the JRE
  29  * usually read more bytes than needed from the input stream, which


< prev index next >