src/share/classes/javax/crypto/CipherInputStream.java

Print this page
rev 10175 : 8047721: @since should have JDK version
Reviewed-by:

*** 168,178 **** * <p> * * @return the next byte of data, or <code>-1</code> if the end of the * stream is reached. * @exception IOException if an I/O error occurs. - * @since JCE1.2 */ public int read() throws IOException { if (ostart >= ofinish) { // we loop for new data as the spec says we are blocking int i = 0; --- 168,177 ----
*** 194,204 **** * @return the total number of bytes read into the buffer, or * <code>-1</code> is there is no more data because the end of * the stream has been reached. * @exception IOException if an I/O error occurs. * @see java.io.InputStream#read(byte[], int, int) - * @since JCE1.2 */ public int read(byte b[]) throws IOException { return read(b, 0, b.length); } --- 193,202 ----
*** 215,225 **** * @return the total number of bytes read into the buffer, or * <code>-1</code> if there is no more data because the end of * the stream has been reached. * @exception IOException if an I/O error occurs. * @see java.io.InputStream#read() - * @since JCE1.2 */ public int read(byte b[], int off, int len) throws IOException { if (ostart >= ofinish) { // we loop for new data as the spec says we are blocking int i = 0; --- 213,222 ----
*** 252,262 **** * <p>The actual number of bytes skipped is returned. * * @param n the number of bytes to be skipped. * @return the actual number of bytes skipped. * @exception IOException if an I/O error occurs. - * @since JCE1.2 */ public long skip(long n) throws IOException { int available = ofinish - ostart; if (n > available) { n = available; --- 249,258 ----
*** 275,285 **** * <B>should</B> be overridden by subclasses. * * @return the number of bytes that can be read from this input stream * without blocking. * @exception IOException if an I/O error occurs. - * @since JCE1.2 */ public int available() throws IOException { return (ofinish - ostart); } --- 271,280 ----
*** 290,300 **** * The <code>close</code> method of <code>CipherInputStream</code> * calls the <code>close</code> method of its underlying input * stream. * * @exception IOException if an I/O error occurs. - * @since JCE1.2 */ public void close() throws IOException { if (closed) { return; } --- 285,294 ----
*** 319,329 **** * * @return <code>false</code>, since this class does not support the * <code>mark</code> and <code>reset</code> methods. * @see java.io.InputStream#mark(int) * @see java.io.InputStream#reset() - * @since JCE1.2 */ public boolean markSupported() { return false; } } --- 313,322 ----