Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bouncycastle/crypto/tls/TlsInputStream.java')
-rw-r--r--src/main/java/org/bouncycastle/crypto/tls/TlsInputStream.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/main/java/org/bouncycastle/crypto/tls/TlsInputStream.java b/src/main/java/org/bouncycastle/crypto/tls/TlsInputStream.java
index 47281d9b..9509dc4f 100644
--- a/src/main/java/org/bouncycastle/crypto/tls/TlsInputStream.java
+++ b/src/main/java/org/bouncycastle/crypto/tls/TlsInputStream.java
@@ -6,7 +6,8 @@ import java.io.InputStream;
/**
* An InputStream for an TLS 1.0 connection.
*/
-class TlsInputStream extends InputStream
+class TlsInputStream
+ extends InputStream
{
private byte[] buf = new byte[1];
private TlsProtocol handler = null;
@@ -16,12 +17,14 @@ class TlsInputStream extends InputStream
this.handler = handler;
}
- public int read(byte[] buf, int offset, int len) throws IOException
+ public int read(byte[] buf, int offset, int len)
+ throws IOException
{
return this.handler.readApplicationData(buf, offset, len);
}
- public int read() throws IOException
+ public int read()
+ throws IOException
{
if (this.read(buf) < 0)
{
@@ -30,7 +33,8 @@ class TlsInputStream extends InputStream
return buf[0] & 0xff;
}
- public void close() throws IOException
+ public void close()
+ throws IOException
{
handler.close();
}