/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to {@code false}. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to {@code true}. * @throws IOException if trying to read past the end of file. */ @Override public int read(final char[] chars) throws IOException { return read(chars, 0, chars.length); }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to <code>false</code>. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to <code>true</code>. * @throws IOException if trying to read past the end of file. */ public int read(char[] chars) throws IOException { return read(chars, 0, chars.length); }
@Override public int read(final char[] chars) throws IOException { return chars == null ? 0 : super.read(chars); } @Override
@Override public int read(final CharBuffer target) throws IOException { return target == null ? 0 : super.read(target); } }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to <code>false</code>. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to <code>true</code>. * @throws IOException if trying to read past the end of file. */ @Override public int read(char[] chars) throws IOException { return read(chars, 0, chars.length); }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to <code>false</code>. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to <code>true</code>. * @throws IOException if trying to read past the end of file. */ public int read(char[] chars) throws IOException { return read(chars, 0, chars.length); }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to <code>false</code>. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to <code>true</code>. * @throws IOException if trying to read past the end of file. */ public int read(char[] chars) throws IOException { return read(chars, 0, chars.length); }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to {@code false}. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to {@code true}. * @throws IOException if trying to read past the end of file. */ @Override public int read(char[] chars) throws IOException { return read(chars, 0, chars.length); }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to {@code false}. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to {@code true}. * @throws IOException if trying to read past the end of file. */ @Override public int read(final char[] chars) throws IOException { return read(chars, 0, chars.length); }
/** * Read some characters into the specified array. * * @param chars The character array to read into * @return The number of characters read or <code>-1</code> * if the end of file has been reached and * <code>throwEofException</code> is set to {@code false}. * @throws EOFException if the end of file is reached and * <code>throwEofException</code> is set to {@code true}. * @throws IOException if trying to read past the end of file. */ @Override public int read(final char[] chars) throws IOException { return read(chars, 0, chars.length); }