@Override /** * <p>Returns the number of bytes that can be read from this input stream without * blocking. The available method of InputStream returns 0. This method should be * overridden by subclasses.</p> * * @return the number of bytes that can be read from this input stream without blocking. * @throws IOException */ public int available() throws IOException { return cipherInputStream.available(); }
@Override public int available() throws IOException { if (firstRead) { initCipher(); firstRead = false; } return super.available(); } };