public interface AsciiComm
All the functions here use ASCII (UniCode) transfer as opposed to binary. This is useful when incompatabilities between various computer platforms cause problems when using binary transfer (i.e. little and big endian).
Note that we ONLY now inplement ASCII transfer because Java has incorporated the Serializable interface which does the same as the old Binary transfer. This will be implemented for each type.
TrianaType
,
GraphType
,
VectorType
,
Spectrum
,
Document
Modifier and Type | Method and Description |
---|---|
void |
inputFromStream(java.io.BufferedReader dis)
Used when Triana types want to be able to receive ASCII data from the output of other programs.
|
void |
outputToStream(java.io.PrintWriter dos)
Used when Triana types want to be able to send their data via an output stream to other programs using strings.
|
void inputFromStream(java.io.BufferedReader dis) throws java.io.IOException
java.io.IOException
void outputToStream(java.io.PrintWriter dos) throws java.io.IOException
java.io.IOException