com.sun.squawk.io.j2me.dserror
Class Protocol
java.lang.Object
com.sun.squawk.io.ConnectionBase
com.sun.squawk.io.j2me.dserror.Protocol
- All Implemented Interfaces:
- Connection, OutputConnection
public class Protocol
- extends ConnectionBase
- implements OutputConnection
This Generic Connection Framework Protocol class writes to the FRC Driver Station error pane.
- Author:
- dw29446
|
Field Summary |
protected boolean |
opened
|
opened
protected boolean opened
Protocol
public Protocol()
open
public Connection open(String protocol,
String name,
int mode,
boolean timeouts)
throws IOException
- Open the connection
- Specified by:
open in class ConnectionBase
- Parameters:
name - the target for the connectiontimeouts - a flag to indicate that the called wants
timeout exceptionsprotocol - The URL protocolmode - The access mode
- Returns:
- A new Connection object
- Throws:
ConnectionNotFoundException - If the connection cannot
be found.
IOException - If some other kind of I/O error occurs.
openOutputStream
public OutputStream openOutputStream()
throws IOException
- Returns an output stream for this socket.
- Specified by:
openOutputStream in interface OutputConnection- Overrides:
openOutputStream in class ConnectionBase
- Returns:
- an output stream for writing bytes to this socket.
- Throws:
IOException - if an I/O error occurs when creating
the output stream.
"For updated information see the Java FRC site"