org.hcilab.btprinter.platform.j2se
Class IOHandlerImpl

java.lang.Object
  extended by org.hcilab.btprinter.platform.j2se.IOHandlerImpl
All Implemented Interfaces:
org.hcilab.btprinter.abstractionlayer.IOHandler

public class IOHandlerImpl
extends java.lang.Object
implements org.hcilab.btprinter.abstractionlayer.IOHandler

Connection is implemented using the java comm api.

Version:
1.0.0
Author:
Dominik Schmidt

Constructor Summary
IOHandlerImpl()
           
 
Method Summary
 void connect(java.lang.String id)
           
 void disconnect()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 boolean isConnected()
           
 void setLogHandler(org.hcilab.btprinter.abstractionlayer.LogHandler logHandler)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IOHandlerImpl

public IOHandlerImpl()
Method Detail

setLogHandler

public void setLogHandler(org.hcilab.btprinter.abstractionlayer.LogHandler logHandler)
Specified by:
setLogHandler in interface org.hcilab.btprinter.abstractionlayer.IOHandler

connect

public void connect(java.lang.String id)
             throws java.io.IOException
Specified by:
connect in interface org.hcilab.btprinter.abstractionlayer.IOHandler
Throws:
java.io.IOException

disconnect

public void disconnect()
Specified by:
disconnect in interface org.hcilab.btprinter.abstractionlayer.IOHandler

isConnected

public boolean isConnected()
Specified by:
isConnected in interface org.hcilab.btprinter.abstractionlayer.IOHandler

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in interface org.hcilab.btprinter.abstractionlayer.IOHandler
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface org.hcilab.btprinter.abstractionlayer.IOHandler
Throws:
java.io.IOException