File |
Line |
net/sf/atmodem4j/spsw/GenericTermiosSerialPortSocket.java |
74 |
net/sf/atmodem4j/spsw/GenericWinSerialPortSocket.java |
76 |
public native void setDTR(boolean value) throws IOException;
@Override
public native void setXONChar(char c) throws IOException;
@Override
public native void setXOFFChar(char c) throws IOException;
@Override
protected native int readSingle() throws IOException;
/**
* Read data from port
*
* @param b the data to be written
* @param off the start offset in the data
* @param len the number of bytes that are written
* @exception IOException If an I/O error has occurred.
*/
@Override
protected native int readBytes(byte[] b, int off, int len) throws IOException;
@Override
protected native void writeSingle(int b) throws IOException;
/**
* Write data to port
*
* @param off the start offset in the data.
* @param len the number of bytes to write.
*
*/
@Override
protected native void writeBytes(byte[] b, int off, int len) throws IOException;
@Override
public native int getInBufferBytesCount() throws IOException;
@Override
public native int getOutBufferBytesCount() throws IOException;
@Override
protected native void setFlowControl(int mask) throws IOException;
@Override
protected native int getFlowControl0() throws IOException;
@Override
public native void setBreak(boolean value) throws IOException;
@Override
protected native void setBaudrate(int baudRate) throws IOException;
@Override
protected native void setDataBits(int value) throws IOException;
@Override
protected native void setStopBits(int value) throws IOException;
@Override
protected native void setParity(int parity) throws IOException;
@Override
protected native int getBaudrate0() throws IOException;
@Override
protected native int getDataBits0() throws IOException;
@Override
protected native int getStopBits0() throws IOException;
@Override
protected native int getParity0() throws IOException;
@Override
public native char getXONChar() throws IOException;
@Override
public native char getXOFFChar() throws IOException; |
File |
Line |
net/sf/atmodem4j/spsw/AbstractSerialPortSocket.java |
152 |
net/sf/atmodem4j/spsw/SerialPortSocket.java |
77 |
case "Windows CE":
throw new UnsupportedOperationException("Windows CE is currently not supported yet");
case "OS/2":
throw new UnsupportedOperationException("OS/2 is currently not supported yet");
case "MPE/iX":
throw new UnsupportedOperationException("MPE/iX is currently not supported yet");
case "HP-UX":
throw new UnsupportedOperationException("HP-UX is currently not supported yet");
case "AIX":
throw new UnsupportedOperationException("AIX is currently not supported yet");
case "OS/390":
throw new UnsupportedOperationException("OS/390 is currently not supported yet");
case "FreeBSD":
throw new UnsupportedOperationException("FreeBSD is currently not supported yet");
case "Irix":
throw new UnsupportedOperationException("Irix is currently not supported yet");
case "Digital Unix":
throw new UnsupportedOperationException("Digital Unix is currently not supported yet");
case "NetWare 4.11":
throw new UnsupportedOperationException("NetWare 4.11 is currently not supported yet");
case "OSF1":
throw new UnsupportedOperationException("OSF1 is currently not supported yet");
case "OpenVMS":
throw new UnsupportedOperationException("OpenVMS is currently not supported yet");
default:
throw new RuntimeException("Can't figure out OS: " + System.getProperty("os.name"));
}
} |
File |
Line |
net/sf/atmodem4j/spsw/GenericTermiosSerialPortSocket.java |
65 |
net/sf/atmodem4j/spsw/GenericWinSerialPortSocket.java |
61 |
public native boolean isDTR();
@Override
public native boolean isIncommingRI();
@Override
public native void setRTS(boolean value) throws IOException;
@Override
public native void setDTR(boolean value) throws IOException;
@Override
public native void setXONChar(char c) throws IOException; |
File |
Line |
net/sf/atmodem4j/spsw/AbstractSerialPortSocket.java |
624 |
net/sf/atmodem4j/spsw/AbstractSerialPortSocket.java |
669 |
public int read(byte b[], int off, int len) throws IOException {
if (b == null) {
throw new NullPointerException();
} else if (off < 0 || len < 0 || len > b.length - off) { |
File |
Line |
net/sf/atmodem4j/spsw/AbstractSerialPortSocket.java |
324 |
net/sf/atmodem4j/spsw/AbstractSerialPortSocket.java |
348 |
}
});
} catch (java.security.PrivilegedActionException e) {
throw (IOException) e.getException();
}
return result;
}
@Override
public OutputStream getOutputStream() throws IOException { |