2010 FRC Java API


com.sun.squawk.io.j2me.pipe
Class PipeServerSocketListener

java.lang.Object
  extended by com.sun.spot.ota.ServerSocketListener
      extended by com.sun.squawk.io.j2me.pipe.PipeServerSocketListener
All Implemented Interfaces:
Runnable

public class PipeServerSocketListener
extends ServerSocketListener

Author:
ea149956

Field Summary
protected static PipeServerSocketListener active
           
static int DEFAULT_PORT
           
static int MAX_QUEUED_SIZE
           
protected  OutputStream[] outputs
           
protected  ByteArrayOutputStream queuedOutput
           
static boolean startedPiping
           
 
Fields inherited from class com.sun.spot.ota.ServerSocketListener
keepRunning, port
 
Constructor Summary
PipeServerSocketListener(int port)
           
 
Method Summary
static PipeServerSocketListener getActive()
           
 Runnable newRunnable(StreamConnection connection)
           
protected static void startIfNecessary()
           
static void startPipingConsoleIfNecessary()
           
 void write(int arg0)
           
 
Methods inherited from class com.sun.spot.ota.ServerSocketListener
free, run, start, stopRunning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_QUEUED_SIZE

public static final int MAX_QUEUED_SIZE
See Also:
Constant Field Values

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

startedPiping

public static boolean startedPiping

active

protected static PipeServerSocketListener active

outputs

protected OutputStream[] outputs

queuedOutput

protected ByteArrayOutputStream queuedOutput
Constructor Detail

PipeServerSocketListener

public PipeServerSocketListener(int port)
Method Detail

startPipingConsoleIfNecessary

public static void startPipingConsoleIfNecessary()

getActive

public static PipeServerSocketListener getActive()

startIfNecessary

protected static void startIfNecessary()

newRunnable

public Runnable newRunnable(StreamConnection connection)
Specified by:
newRunnable in class ServerSocketListener

write

public void write(int arg0)
           throws IOException
Throws:
IOException

2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.