public class TCPUtil
extends java.lang.Object
Constructor and Description |
---|
TCPUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
readUntilStreamClose(java.io.BufferedInputStream bis,
int timeoutInSeconds)
Reads data from stream until the peer closes connection or timeout passes.
|
static byte[] |
readWithLenght(java.io.BufferedInputStream bis,
int lenght,
int timeoutInSeconds)
Reads data from stream until the peer closes connection, timeout passes or all data read.
|
public static byte[] readWithLenght(java.io.BufferedInputStream bis, int lenght, int timeoutInSeconds) throws java.io.IOException, tr.gov.tubitak.uekae.esya.api.common.ESYAException
bis
- lenght
- timeoutInSeconds
- java.io.IOException
tr.gov.tubitak.uekae.esya.api.common.ESYAException
public static byte[] readUntilStreamClose(java.io.BufferedInputStream bis, int timeoutInSeconds) throws java.io.IOException, tr.gov.tubitak.uekae.esya.api.common.ESYAException
bis
- timeoutInSeconds
- java.io.IOException
tr.gov.tubitak.uekae.esya.api.common.ESYAException
Copyright © 2025. All rights reserved.