/** * Check whether we reach the end of the stream. * * @return false if the chunk encoded stream has more data to read (in which * case available() will be greater than 0); true otherwise. * @throws java.io.IOException * on I/O errors. */ private boolean checkEOF() throws IOException { if (isClosed()) return true; while (true) { if (remain > 0) return false; if (lastChunk) return true; readLength(); } }
/** * Check whether we reach the end of the stream. * * @return false if the chunk encoded stream has more data to read (in which * case available() will be greater than 0); true otherwise. * @throws java.io.IOException * on I/O errors. */ private boolean checkEOF() throws IOException { if (isClosed()) return true; while (true) { if (remain > 0) return false; if (lastChunk) return true; readLength(); } }
/** * Check whether we reach the end of the stream. * * @return false if the chunk encoded stream has more data to read (in which * case available() will be greater than 0); true otherwise. * @throws java.io.IOException * on I/O errors. */ private boolean checkEOF() throws IOException { if (isClosed()) return true; while (true) { if (remain > 0) return false; if (lastChunk) return true; readLength(); } }
/** * Check whether we reach the end of the stream. * * @return false if the chunk encoded stream has more data to read (in which * case available() will be greater than 0); true otherwise. * @throws java.io.IOException * on I/O errors. */ private boolean checkEOF() throws IOException { if (isClosed()) return true; while (true) { if (remain > 0) return false; if (lastChunk) return true; readLength(); } }
/** * Check whether we reach the end of the stream. * * @return false if the chunk encoded stream has more data to read (in which * case available() will be greater than 0); true otherwise. * @throws java.io.IOException * on I/O errors. */ private boolean checkEOF() throws IOException { if (isClosed()) return true; while (true) { if (remain > 0) return false; if (lastChunk) return true; readLength(); } }
/** * Check whether we reach the end of the stream. * * @return false if the chunk encoded stream has more data to read (in which * case available() will be greater than 0); true otherwise. * @throws java.io.IOException * on I/O errors. */ private boolean checkEOF() throws IOException { if (isClosed()) return true; while (true) { if (remain > 0) return false; if (lastChunk) return true; readLength(); } }