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
IOException
public MLLPConnection(Socket sock, int bufferSize) throws IOException
IOException
public void writeMessage(byte[] b) throws IOException
IOException
public void writeMessage(byte[] b, int off, int len) throws IOException
IOException
public byte[] readMessage() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2017 dcm4che.org. All rights reserved.