]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/sdk/java/net/tinyos/comm/SerialPort.java
Previously, the serial forwarder would only release the COM port on exit. Now it...
[tinyos-2.x.git] / support / sdk / java / net / tinyos / comm / SerialPort.java
index 995959c6726aa6c6c27b5b0997f8b81231049aea..89e40502ad93d67bec9cb7f643c9f439a24452f2 100644 (file)
@@ -1,5 +1,7 @@
 //$Id$
 
+package net.tinyos.comm;
+
 /* "Copyright (c) 2000-2003 The Regents of the University of California.  
  * All rights reserved.
  *
@@ -22,7 +24,6 @@
 
 //@author Cory Sharp <cssharp@eecs.berkeley.edu>
 
-package net.tinyos.comm;
 
 import java.io.*;
 
@@ -43,8 +44,10 @@ public interface SerialPort
   public InputStream getInputStream() throws IOException;
   public OutputStream getOutputStream() throws IOException;
 
+  public boolean open();
   public void close();
-
+  public void finalize();
+  
   public void setSerialPortParams( 
     int baudrate, int dataBits, int stopBits, boolean parity )
     throws UnsupportedCommOperationException;