public static class ConnectionManager.ClientJarInputStream extends InputStream
Constructor and Description |
---|
ClientJarInputStream(String host,
int port,
int mode,
String servletZone)
Constructs a stream by the given arguments.
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Indicates the stream to be available.
|
void |
close()
Closes the stream.
|
long |
getClientJarSize()
Provides the size of the jar.
|
boolean |
markSupported()
Indicates, whether this stream supports mark and reset.
|
int |
read()
Reads a byte.
|
int |
read(byte[] b)
Reads some bytes into the given byte buffer.
|
int |
read(byte[] b,
int off,
int len)
Reads some bytes into the given byte buffer starting at the given offset of that buffer.
|
mark, reset, skip
public ClientJarInputStream(String host, int port, int mode, String servletZone) throws IOException
host
- The server host name.port
- The server port.mode
- The connection mode, one of ConnectionManager.HTTP_MODE
or ConnectionManager.SOCKET_MODE
.servletZone
- The servlet zone, only used when mode is ConnectionManager.HTTP_MODE
.IOException
public int available() throws IOException
available
in class InputStream
true
, if available.IOException
public long getClientJarSize()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
b
- A buffer.IOException
- If reading bytes failed.public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
b
- A buffer.off
- The write offset.len
- The number of bytes to read.IOException
- If reading bytes failed.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210