public class Transport
extends java.lang.Object
Constructor and Description |
---|
Transport() |
Modifier and Type | Method and Description |
---|---|
SmlFile |
getSMLFile(java.io.DataInputStream is)
Reads SML file from input stream
|
void |
send(java.io.DataOutputStream os,
byte[] smlPackage)
Sends SML messages to output stream
|
void |
setTimeout(int timeout)
Sets timeout in milliseconds.
|
public void send(java.io.DataOutputStream os, byte[] smlPackage) throws java.io.IOException
os
- output streamsmlPackage
- SML packagejava.io.IOException
- if exception occurs while writing to output streampublic SmlFile getSMLFile(java.io.DataInputStream is) throws java.io.IOException
is
- the input streamjava.io.IOException
- if an error occurs reading the SML filepublic void setTimeout(int timeout)
timeout
- the timeout in milliseconds