src/share/classes/javax/crypto/CipherInputStream.java
Print this page
rev 10175 : 8047721: @since should have JDK version
Reviewed-by:
@@ -168,11 +168,11 @@
* <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
+ * @since 1.4, 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;
@@ -194,11 +194,11 @@
* @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
+ * @since 1.4, JCE1.2
*/
public int read(byte b[]) throws IOException {
return read(b, 0, b.length);
}
@@ -215,11 +215,11 @@
* @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
+ * @since 1.4, 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;
@@ -252,11 +252,11 @@
* <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
+ * @since 1.4, JCE1.2
*/
public long skip(long n) throws IOException {
int available = ofinish - ostart;
if (n > available) {
n = available;
@@ -275,11 +275,11 @@
* <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
+ * @since 1.4, JCE1.2
*/
public int available() throws IOException {
return (ofinish - ostart);
}
@@ -290,11 +290,11 @@
* 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
+ * @since 1.4, JCE1.2
*/
public void close() throws IOException {
if (closed) {
return;
}
@@ -319,11 +319,11 @@
*
* @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
+ * @since 1.4, JCE1.2
*/
public boolean markSupported() {
return false;
}
}