public class MLLPConnection extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOG |
private MLLPInputStream |
mllpIn |
private MLLPOutputStream |
mllpOut |
private Socket |
sock |
| Constructor and Description |
|---|
MLLPConnection(Socket sock) |
MLLPConnection(Socket sock,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Socket |
getSocket() |
private void |
log(String format,
byte[] b,
int off,
int len) |
byte[] |
readMessage() |
void |
writeMessage(byte[] b) |
void |
writeMessage(byte[] b,
int off,
int len) |
private final MLLPInputStream mllpIn
private final MLLPOutputStream mllpOut
public MLLPConnection(Socket sock) throws IOException
IOExceptionpublic MLLPConnection(Socket sock, int bufferSize) throws IOException
IOExceptionpublic void writeMessage(byte[] b) throws IOException
IOExceptionpublic void writeMessage(byte[] b, int off, int len) throws IOException
IOExceptionpublic byte[] readMessage() throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017 dcm4che.org. All rights reserved.