public int getReceiveTimeout(){ return(NativegetReceiveTimeout( )); }
public boolean isReceiveTimeoutEnabled(){ return(NativeisReceiveTimeoutEnabled()); } public int getReceiveTimeout(){
/** Finalize the port */ protected void finalize() { close(); }
public void close() { setDTR(false); setDSR(false); nativeClose(); super.close(); ciAddress = 0; }
public void enableReceiveThreshold(int thresh) { if (thresh >= 0) { threshold = thresh; NativeEnableReceiveTimeoutThreshold(timeout, threshold, InputBuffer); } else /* invalid thresh */ { System.out.println("Invalid Threshold"); } }
/** Open the named port */ public Raw( String name ) throws PortInUseException { ciAddress=Integer.parseInt(name); open( ciAddress ); } private native int open( int ciAddress ) throws PortInUseException;
/** Set the RawPort parameters */ public void setRawPortParams(int b, int d, int s, int p) throws UnsupportedCommOperationException { nativeSetRawPortParams(b, d, s, p); speed = b; dataBits = d; stopBits = s; parity = p; }
public void run() { eventLoop(); } }
public void disableReceiveTimeout() { enableReceiveTimeout(0); }
public void disableReceiveThreshold() { enableReceiveThreshold(0); }
public void close() { setDTR(false); setDSR(false); nativeClose(); super.close(); ciAddress = 0; }
public void enableReceiveTimeout(int time) { if (time >= 0) { timeout = time; NativeEnableReceiveTimeoutThreshold(time, threshold, InputBuffer); } else { System.out.println("Invalid timeout"); } }
/** Open the named port */ public Raw(String name) throws PortInUseException { ciAddress = Integer.parseInt(name); open(ciAddress); }
/** Set the RawPort parameters */ public void setRawPortParams( int b, int d, int s, int p ) throws UnsupportedCommOperationException { nativeSetRawPortParams( b, d, s, p ); speed = b; dataBits = d; stopBits = s; parity = p; }
public void run() { eventLoop(); } }
public void disableReceiveTimeout(){ enableReceiveTimeout(0); } public void enableReceiveTimeout( int time ){
public void disableReceiveThreshold() { enableReceiveThreshold(0); } public int getReceiveThreshold(){
public void enableReceiveTimeout( int time ){ if( time >= 0 ) { timeout = time; NativeEnableReceiveTimeoutThreshold( time , threshold, InputBuffer ); } else { System.out.println("Invalid timeout"); } } public boolean isReceiveTimeoutEnabled(){
public boolean isReceiveTimeoutEnabled() { return (NativeisReceiveTimeoutEnabled()); }
/** Finalize the port */ protected void finalize() { close(); }