com.sun.squawk.io.j2me.dserror
Class Protocol
java.lang.Object
   com.sun.squawk.io.ConnectionBase
com.sun.squawk.io.ConnectionBase
       com.sun.squawk.io.j2me.dserror.Protocol
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:
- openin class- ConnectionBase
 
- 
- Parameters:
- name- the target for the connection
- timeouts- a flag to indicate that the called wants
                   timeout exceptions
- protocol- The URL protocol
- mode- 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:
- openOutputStreamin interface- OutputConnection
- Overrides:
- openOutputStreamin 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"