krati.core.array.entry
Class EntryValueIntFactory

java.lang.Object
  extended by krati.core.array.entry.EntryValueIntFactory
All Implemented Interfaces:
EntryValueFactory<EntryValueInt>

public class EntryValueIntFactory
extends Object
implements EntryValueFactory<EntryValueInt>

EntryValueIntFactory.

Author:
jwu

Constructor Summary
EntryValueIntFactory()
           
 
Method Summary
 EntryValueInt newValue()
           
 EntryValueInt newValue(DataReader in)
           
 EntryValueInt[] newValueArray(int length)
          Creates an array of EntryValueInt of a specified length.
 void reinitValue(DataReader in, EntryValueInt value)
          Read data from stream to populate an EntryValueInt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryValueIntFactory

public EntryValueIntFactory()
Method Detail

newValueArray

public EntryValueInt[] newValueArray(int length)
Creates an array of EntryValueInt of a specified length.

Specified by:
newValueArray in interface EntryValueFactory<EntryValueInt>
Parameters:
length - the length of array
Returns:
an array of EntryValueInt(s).

newValue

public EntryValueInt newValue()
Specified by:
newValue in interface EntryValueFactory<EntryValueInt>
Returns:
an empty EntryValueInt.

newValue

public EntryValueInt newValue(DataReader in)
                       throws IOException
Specified by:
newValue in interface EntryValueFactory<EntryValueInt>
Returns:
an EntryValueInt read from an input stream.
Throws:
IOException

reinitValue

public void reinitValue(DataReader in,
                        EntryValueInt value)
                 throws IOException
Read data from stream to populate an EntryValueInt.

Specified by:
reinitValue in interface EntryValueFactory<EntryValueInt>
Parameters:
in - data reader for EntryValueInt.
value - an EntryValueInt to populate.
Throws:
IOException


Copyright © 2011. All Rights Reserved.