A B C D E F G I L M N O R S T U V W

A

Acceptor - Class in org.indi.server
Acceptor used for passive connection estabishment.
addDriver(BasicDevice) - Method in class org.indi.server.IndiServer
add a new driver to the server
addObserver(Observer) - Method in class org.indi.server.IndiServer
add a new observer to the server

B

Base64 - Class in org.indi.server
Encodes and decodes to and from Base64 notation.
Base64.InputStream - Class in org.indi.server
A Base64.InputStream will read data from another java.io.InputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.InputStream(InputStream) - Constructor for class org.indi.server.Base64.InputStream
Constructs a Base64.InputStream in DECODE mode.
Base64.InputStream(InputStream, int) - Constructor for class org.indi.server.Base64.InputStream
Constructs a Base64.InputStream in either ENCODE or DECODE mode.
Base64.OutputStream - Class in org.indi.server
A Base64.OutputStream will write data to another java.io.OutputStream, given in the constructor, and encode/decode to/from Base64 notation on the fly.
Base64.OutputStream(OutputStream) - Constructor for class org.indi.server.Base64.OutputStream
Constructs a Base64.OutputStream in ENCODE mode.
Base64.OutputStream(OutputStream, int) - Constructor for class org.indi.server.Base64.OutputStream
Constructs a Base64.OutputStream in either ENCODE or DECODE mode.
BasicDevice - Class in org.indi.server
Basic implementation of the device interface.
BasicDevice(IndiServer) - Constructor for class org.indi.server.BasicDevice
class constructor

C

characters(char[], int, int) - Method in class org.indi.server.SaxHandler
 
ClientHandler - Class in org.indi.server
A class to handle a connection to a single client
ClientHandler(Reactor, SelectableChannel) - Constructor for class org.indi.server.ClientHandler
class constructor
clientHandlers - Variable in class org.indi.server.IndiServer
A collection of clients connected to this server
close() - Method in class org.indi.server.Base64.OutputStream
Flushes and closes (I think, in the superclass) the stream.

D

DECODE - Static variable in class org.indi.server.Base64
Specify decoding.
decode(byte[], int, int, int) - Static method in class org.indi.server.Base64
Very low-level access to decoding ASCII characters in the form of a byte array.
decode(String) - Static method in class org.indi.server.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decode(String, int) - Static method in class org.indi.server.Base64
Decodes data from Base64 notation, automatically detecting gzip-compressed data and decompressing it.
decodeFileToFile(String, String) - Static method in class org.indi.server.Base64
Reads infile and decodes it to outfile.
decodeFromFile(String) - Static method in class org.indi.server.Base64
Convenience method for reading a base64-encoded file and decoding it.
decodeToFile(String, String) - Static method in class org.indi.server.Base64
Convenience method for decoding data to a file.
decodeToObject(String) - Static method in class org.indi.server.Base64
Attempts to decode Base64 data and deserialize a Java Object within.
def(Vector, String) - Method in class org.indi.server.BasicDevice
Shortcut to send a def vector message to all interested clients
def(Vector) - Method in class org.indi.server.BasicDevice
Send a def vector message to all interested clients.
def(Vector) - Method in class org.indi.server.SmartDevice
 
def(Vector, String) - Method in class org.indi.server.SmartDevice
 
del(Vector, String) - Method in class org.indi.server.BasicDevice
Shortcut to send a del vector message to all interested clients
del(Vector) - Method in class org.indi.server.BasicDevice
Send a del vector message to all interested clients.
del(Vector) - Method in class org.indi.server.SmartDevice
 
del(Vector, String) - Method in class org.indi.server.SmartDevice
 
Device - Interface in org.indi.server
The basic interface implemented by device drivers
Dispatcher - Class in org.indi.server
Dipatches the parsed indi messages from the client to the device drivers.
Dispatcher(Queue<Object>, IndiServer) - Constructor for class org.indi.server.Dispatcher
class consturctor
DONT_BREAK_LINES - Static variable in class org.indi.server.Base64
Don't break lines when encoding (violates strict Base64 specification)
drivers - Variable in class org.indi.server.IndiServer
A collection of devicedrivers hosted by this server

E

ENCODE - Static variable in class org.indi.server.Base64
Specify encoding.
encodeBytes(byte[]) - Static method in class org.indi.server.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int) - Static method in class org.indi.server.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int) - Static method in class org.indi.server.Base64
Encodes a byte array into Base64 notation.
encodeBytes(byte[], int, int, int) - Static method in class org.indi.server.Base64
Encodes a byte array into Base64 notation.
encodeFileToFile(String, String) - Static method in class org.indi.server.Base64
Reads infile and encodes it to outfile.
encodeFromFile(String) - Static method in class org.indi.server.Base64
Convenience method for reading a binary file and base64-encoding it.
encodeObject(Serializable) - Static method in class org.indi.server.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeObject(Serializable, int) - Static method in class org.indi.server.Base64
Serializes an object and returns the Base64-encoded version of that serialized object.
encodeToFile(byte[], String) - Static method in class org.indi.server.Base64
Convenience method for encoding data to a file.
endElement(String, String, String) - Method in class org.indi.server.SaxHandler
 
ExternalDevice - Class in org.indi.server
A class to allow indidrivers written in C to interact with this indiserver writing in Java.
ExternalDevice(IndiServer, String) - Constructor for class org.indi.server.ExternalDevice
class constuctor

F

flushBase64() - Method in class org.indi.server.Base64.OutputStream
Method added by PHIL.

G

getClientHandlers() - Method in class org.indi.server.Acceptor
 
getDevice() - Method in class org.indi.server.Observer
 
getName() - Method in class org.indi.server.BasicDevice
 
getName() - Method in interface org.indi.server.Device
 
getName() - Method in class org.indi.server.Observer
 
getName() - Method in class org.indi.server.SmartDevice
 
getQueue() - Method in class org.indi.server.ExternalDevice
 
getState() - Method in class org.indi.server.Observer
 
getVectorEnabled(Vector) - Method in class org.indi.server.ClientHandler
Checks whether a given indivector should be send to the client with respect to the blobenable configuration for the client.
GZIP - Static variable in class org.indi.server.Base64
Specify that data should be gzip-compressed.

I

IndiServer - Class in org.indi.server
An Indiserver to host drivers
IndiServer() - Constructor for class org.indi.server.IndiServer
class constructor

L

laststate - Variable in class org.indi.server.Observer
the last State porperty of the vector

M

main(String[]) - Static method in class org.indi.server.Base64
Encodes or decodes two files from the command line; feel free to delete this method (in fact you probably should) if you're embedding this code into a larger program.
main(String[]) - Static method in class org.indi.server.ExternalDevice
Runs an indiserver hosting an external device.
main(String[]) - Static method in class org.indi.server.IndiServer
 
msg(String) - Method in class org.indi.server.BasicDevice
Shortcut to send a message to all interested clients
msg(String) - Method in class org.indi.server.SmartDevice
 

N

name - Variable in class org.indi.server.BasicDevice
the name of this driver
name - Variable in class org.indi.server.SmartDevice
 
NO_OPTIONS - Static variable in class org.indi.server.Base64
No options specified.

O

Observer - Class in org.indi.server
An minimal implementation of an observer callback
Observer(String, String, ObserverState) - Constructor for class org.indi.server.Observer
class consturctor
ObserverCallback - Interface in org.indi.server
A callback interface to obeserver changes of a particular vector
observers - Variable in class org.indi.server.BasicDevice
A set registered observers, obsering changes of this device
observers - Variable in class org.indi.server.IndiServer
the set of registered oberservers observing changes of a particular property of a particular driver
ObserverState - Enum in org.indi.server
An state class defining what to observe by an observer.
onAccepted(EventHandler) - Method in class org.indi.server.Acceptor
Called when a new connection has been estabished and new ClientHanlder has been created and associated with that connection.
onEnableBlob(EnableBlob) - Method in class org.indi.server.ClientHandler
called when an enable blob message ist received from the client
onGetProperties(GetProperties) - Method in class org.indi.server.BasicDevice
called by the server when a new GetProperties (request to send all defXXX messages) is received from the a client.
onGetProperties(GetProperties) - Method in class org.indi.server.ClientHandler
called when a get properties message is received from the client
onGetProperties(GetProperties) - Method in interface org.indi.server.Device
Called when a GetProperties message was received client.
onGetProperties(GetProperties) - Method in class org.indi.server.ExternalDevice
 
onGetProperties(GetProperties) - Method in class org.indi.server.SmartDevice
 
onNew(SwitchVector) - Method in class org.indi.server.BasicDevice
called by the server when a new SwitchVector (request to set the state of a switch) is received from the a client.
onNew(NumberVector) - Method in class org.indi.server.BasicDevice
called by the server when a new NumberVector (request to set the state of a number) is received from the a client.
onNew(BlobVector) - Method in class org.indi.server.BasicDevice
called by the server when a new BLOB is received from the a client.
onNew(TextVector) - Method in class org.indi.server.BasicDevice
called by the server when a new TestVector (request to set the state of a text) is received from the a client.
onNew(SwitchVector) - Method in interface org.indi.server.Device
Called by the reactor whenever a SwitchVector (a request to change the state of a switch was received from the client)
onNew(NumberVector) - Method in interface org.indi.server.Device
Called by the reactor whenever a NumberVector (a request to change the state of a number was received from the client)
onNew(BlobVector) - Method in interface org.indi.server.Device
Called by the reactor whenever a BLOBVector (a request to change the state of a blob was received from the client)
onNew(TextVector) - Method in interface org.indi.server.Device
Called by the reactor whenever a TextVector (a request to change the state of a text was received from the client)
onNew(SwitchVector) - Method in class org.indi.server.ExternalDevice
 
onNew(NumberVector) - Method in class org.indi.server.ExternalDevice
 
onNew(BlobVector) - Method in class org.indi.server.ExternalDevice
 
onNew(TextVector) - Method in class org.indi.server.ExternalDevice
 
onNew(SwitchVector) - Method in class org.indi.server.SmartDevice
 
onNew(NumberVector) - Method in class org.indi.server.SmartDevice
 
onNew(BlobVector) - Method in class org.indi.server.SmartDevice
 
onNew(TextVector) - Method in class org.indi.server.SmartDevice
 
onObserved(Vector) - Method in class org.indi.server.BasicDevice
called by the indiserver when a property for which an for with a observer was install via the subscibe method has changed
onObserved(Vector) - Method in class org.indi.server.Observer
 
onObserved(Vector) - Method in interface org.indi.server.ObserverCallback
Callback method called by the server when the observed vector changed
onObserved(Vector) - Method in class org.indi.server.SimpleObserver
 
onObserved(Vector) - Method in class org.indi.server.SmartDevice
 
onRead() - Method in class org.indi.server.ClientHandler
 
onRead(Object) - Method in class org.indi.server.Dispatcher
called by the reactor whenever a new element is in the queue waiting to be dispatched
onRead(Object) - Method in class org.indi.server.ExternalDevice
called by the reactor when a new item is available in the queue.
onTimer() - Method in class org.indi.server.BasicDevice
called by the reactor when the a timer registered with this callback expires
onTimer() - Method in class org.indi.server.SmartDevice
 
ORDERED - Static variable in class org.indi.server.Base64
Encode using the special "ordered" dialect of Base64 described here: http://www.faqs.org/qa/rfcc-1940.html.
org.indi.server - package org.indi.server
 

R

reactor - Variable in class org.indi.server.IndiServer
the reactor used by this server for event dispatching
read() - Method in class org.indi.server.Base64.InputStream
Reads enough of the input stream to convert to/from Base64 and returns the next byte.
read(byte[], int, int) - Method in class org.indi.server.Base64.InputStream
Calls Base64.InputStream.read() repeatedly until the end of stream is reached or len bytes are read.
removeObserver(Observer) - Method in class org.indi.server.IndiServer
remove an existing obeserver from the server.
resumeEncoding() - Method in class org.indi.server.Base64.OutputStream
Resumes encoding of the stream.
run() - Method in class org.indi.server.ClientHandler
start method parsing thread (run asynchornously)
run() - Method in class org.indi.server.ExternalDevice
run asynchronously.

S

SaxHandler - Class in org.indi.server
A sax handler to parse the information received from the client
SaxHandler(Queue<Object>, ClientHandler) - Constructor for class org.indi.server.SaxHandler
class constructor
send(Object, TransferType, String) - Method in class org.indi.server.ClientHandler
send a particular indiobject to the client
sendToClients(Object, TransferType, String) - Method in class org.indi.server.BasicDevice
Send to the given object to all interested clients
sendToClients(Object, TransferType, String) - Method in class org.indi.server.IndiServer
send an indiobject to all interested clients
sendVector(Vector) - Method in class org.indi.server.ExternalDevice
Send a vector to external driver
server - Variable in class org.indi.server.BasicDevice
the indiserver instance that this driver interacting with
set(Vector, String) - Method in class org.indi.server.BasicDevice
Shortcut to send a set vector message to all interested clients
set(Vector) - Method in class org.indi.server.BasicDevice
Send a set vector message to all interested clients.
set(Vector) - Method in class org.indi.server.SmartDevice
 
set(Vector, String) - Method in class org.indi.server.SmartDevice
 
setQueue(Queue<Object>) - Method in class org.indi.server.ClientHandler
set the queue to send parsed messages from the parsing thread to the device drivers
SimpleObserver - Class in org.indi.server
an object to desribing which vector to observe, how to observe it and which callback to call if it changeds
SimpleObserver(String, String, ObserverState, ObserverCallback) - Constructor for class org.indi.server.SimpleObserver
class constructor
SmartDevice - Class in org.indi.server
 
SmartDevice(IndiServer, String) - Constructor for class org.indi.server.SmartDevice
 
startElement(String, String, String, Attributes) - Method in class org.indi.server.SaxHandler
 
subscribe(String, String, ObserverState) - Method in class org.indi.server.BasicDevice
Register a new observer callback with the server.
suspendEncoding() - Method in class org.indi.server.Base64.OutputStream
Suspends encoding of the stream.

T

timer(long) - Method in class org.indi.server.BasicDevice
register a timer such the onTimer will be called after the given timeout
timer(long) - Method in class org.indi.server.SmartDevice
 

U

unsubscribe(Observer) - Method in class org.indi.server.BasicDevice
remove the given observer.
unsubscribe(String, String) - Method in class org.indi.server.BasicDevice
cancel the callback(s) for state or value changes for the property defined by the name of the device and the name of the property.
URL_SAFE - Static variable in class org.indi.server.Base64
Encode using Base64-like encoding that is URL- and Filename-safe as described in Section 4 of RFC3548: http://www.faqs.org/rfcs/rfc3548.html.

V

valueOf(String) - Static method in enum org.indi.server.ObserverState
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.indi.server.ObserverState
Returns an array containing the constants of this enum type, in the order they're declared.
version - Variable in class org.indi.server.IndiServer
the version of the indisever

W

write(int) - Method in class org.indi.server.Base64.OutputStream
Writes the byte to the output stream after converting to/from Base64 notation.
write(byte[], int, int) - Method in class org.indi.server.Base64.OutputStream
Calls Base64.OutputStream.write(int) repeatedly until len bytes are written.

A B C D E F G I L M N O R S T U V W

Copyright © 2008. All Rights Reserved.