SunSPOT API V6.0


com.sun.spot.io.j2me.remoteprinting
Class RemotePrintManager

java.lang.Object
  extended by com.sun.spot.resources.Resource
      extended by com.sun.spot.io.j2me.remoteprinting.RemotePrintManager
All Implemented Interfaces:
IRemotePrintManager, IResource

public class RemotePrintManager
extends Resource
implements IRemotePrintManager

Manages the creation and removal of remote print connections


Method Summary
 void cancelRedirect()
          Cancel current redirection of streams
static IRemotePrintManager getInstance()
           
 void noteRedirection(String remoteAddress)
          Called when streams get redirected to ensure that RemotePrintManager can later cancel the redirection if necessary.
 OutputStream openOutputStream(String address, int portNo)
           
 void redirectOutputStreams(String basestationAddr)
          Start directing output streams to the basestation specified
 
Methods inherited from class com.sun.spot.resources.Resource
addTag, getTags, getTagValue, hasTag, removeTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.spot.resources.IResource
addTag, getTags, getTagValue, hasTag, removeTag
 

Method Detail

getInstance

public static IRemotePrintManager getInstance()

openOutputStream

public OutputStream openOutputStream(String address,
                                     int portNo)
Specified by:
openOutputStream in interface IRemotePrintManager

redirectOutputStreams

public void redirectOutputStreams(String basestationAddr)
Description copied from interface: IRemotePrintManager
Start directing output streams to the basestation specified

Specified by:
redirectOutputStreams in interface IRemotePrintManager
Parameters:
basestationAddr - the address of the basestation

cancelRedirect

public void cancelRedirect()
Description copied from interface: IRemotePrintManager
Cancel current redirection of streams

Specified by:
cancelRedirect in interface IRemotePrintManager

noteRedirection

public void noteRedirection(String remoteAddress)
Description copied from interface: IRemotePrintManager
Called when streams get redirected to ensure that RemotePrintManager can later cancel the redirection if necessary.

Specified by:
noteRedirection in interface IRemotePrintManager

SunSPOT API V6.0


Copyright © 2006-2010 Oracle. All Rights Reserved.