edu.wpi.first.wpilibj.networktables2.type
Class NetworkTableEntryType

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.type.NetworkTableEntryType
Direct Known Subclasses:
ComplexEntryType

public abstract class NetworkTableEntryType
extends Object

A class defining the types supported by NetworkTables as well as support for serialization of those types to and from DataStreams

Author:
mwills

Field Summary
 byte id
          the id of a type
 String name
          the name of a type
 
Constructor Summary
protected NetworkTableEntryType(byte id, String name)
           
 
Method Summary
abstract  Object readValue(DataInputStream is)
          read a value from a data input stream
abstract  void sendValue(Object value, DataOutputStream os)
          send a value over a data output stream
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final byte id
the id of a type


name

public final String name
the name of a type

Constructor Detail

NetworkTableEntryType

protected NetworkTableEntryType(byte id,
                                String name)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

sendValue

public abstract void sendValue(Object value,
                               DataOutputStream os)
                        throws IOException
send a value over a data output stream

Parameters:
value - the value to send
os - the stream to send the value over
Throws:
IOException - an error occurred writing the value

readValue

public abstract Object readValue(DataInputStream is)
                          throws IOException
read a value from a data input stream

Parameters:
is - the stream to read a value from
Returns:
the value read from the stream
Throws:
IOException - an error occurred reading the value


Copyright © 2013. All rights reserved.