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

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.type.NetworkTableEntryType
      extended by edu.wpi.first.wpilibj.networktables2.type.ComplexEntryType
          extended by edu.wpi.first.wpilibj.networktables2.type.ArrayEntryType

public class ArrayEntryType
extends ComplexEntryType

Author:
Mitchell

Field Summary
 
Fields inherited from class edu.wpi.first.wpilibj.networktables2.type.NetworkTableEntryType
id, name
 
Constructor Summary
ArrayEntryType(byte id, NetworkTableEntryType elementType, Class externalArrayType)
           
 
Method Summary
 void exportValue(String key, Object internalData, Object externalRepresentation)
           
 Object internalizeValue(String key, Object externalRepresentation, Object currentInteralValue)
           
 Object readValue(DataInputStream is)
          read a value from a data input stream
 void sendValue(Object value, DataOutputStream os)
          send a value over a data output stream
 
Methods inherited from class edu.wpi.first.wpilibj.networktables2.type.NetworkTableEntryType
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayEntryType

public ArrayEntryType(byte id,
                      NetworkTableEntryType elementType,
                      Class externalArrayType)
Method Detail

sendValue

public void sendValue(Object value,
                      DataOutputStream os)
               throws IOException
Description copied from class: NetworkTableEntryType
send a value over a data output stream

Specified by:
sendValue in class NetworkTableEntryType
Parameters:
value - the value to send
os - the stream to send the value over
Throws:
IOException - an error occurred writing the value

readValue

public Object readValue(DataInputStream is)
                 throws IOException
Description copied from class: NetworkTableEntryType
read a value from a data input stream

Specified by:
readValue in class NetworkTableEntryType
Parameters:
is - the stream to read a value from
Returns:
the value read from the stream
Throws:
IOException - an error occurred reading the value

internalizeValue

public Object internalizeValue(String key,
                               Object externalRepresentation,
                               Object currentInteralValue)
Specified by:
internalizeValue in class ComplexEntryType

exportValue

public void exportValue(String key,
                        Object internalData,
                        Object externalRepresentation)
Specified by:
exportValue in class ComplexEntryType


Copyright © 2013. All rights reserved.