wonderly.jeaprs.io.aprs
Interface APRSOutput

All Known Subinterfaces:
TNC
All Known Implementing Classes:
IGATEStream, JeAPRS.SocketAPRS, TNCStream

public interface APRSOutput

The simple output parts of the JeAPRS system. TNC extends this tremendously for all of its functionality.

Version:
1.0
Author:
Gregg Wonderly - The information contained in this document is Copyright 2001-2003, Gregg Wonderly, all rights reserved.

Method Summary
 void close()
          Close the stream when done
 void write(wonderly.jeaprs.ByteString from, wonderly.jeaprs.ByteString toCall, wonderly.jeaprs.ByteString path, byte[] arr)
          Write the data in arr to the TNC 'device'.
 void write(wonderly.jeaprs.ByteString from, wonderly.jeaprs.ByteString toCall, wonderly.jeaprs.ByteString path, wonderly.jeaprs.ByteString str)
          Write the data in strstr to the TNC 'device' followed by a <CR>.
 

Method Detail

write

public void write(wonderly.jeaprs.ByteString from,
                  wonderly.jeaprs.ByteString toCall,
                  wonderly.jeaprs.ByteString path,
                  byte[] arr)
           throws java.io.IOException
Write the data in arr to the TNC 'device'. If kissMode is 'true', then callstr, toCall and pathstr are all used to formulate a KISS mode packet, otherwise they are ignored.

Parameters:
toCall - the to call/unproto field.
arr - the contents of the packet.
java.io.IOException

write

public void write(wonderly.jeaprs.ByteString from,
                  wonderly.jeaprs.ByteString toCall,
                  wonderly.jeaprs.ByteString path,
                  wonderly.jeaprs.ByteString str)
           throws java.io.IOException
Write the data in strstr to the TNC 'device' followed by a <CR>. If kissMode is 'true', then callstr, toCall and pathstr are all used to formulate a KISS mode packet, otherwise they are ignored.

Parameters:
toCall - the to call/unproto field.
java.io.IOException

close

public void close()
           throws java.io.IOException
Close the stream when done

java.io.IOException