|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiitb.con.query.ItemReader<T>
public class ItemReader<T>
InstanceReader reads an instance item from the concept-net.
| Constructor Summary | |
|---|---|
ItemReader(java.lang.String fileName,
ItemSerializer<T> itemSerializer)
Constructs the InstanceReader with respective file and item serializer |
|
| Method Summary | |
|---|---|
void |
close()
Closes the item file |
T |
getItem(long location,
int length)
Retrieves and deserialize the item from the file |
java.lang.Object |
getItemAttributeValue(long location,
int length,
java.lang.String name)
Retrieves and deserialize the item from the file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemReader(java.lang.String fileName,
ItemSerializer<T> itemSerializer)
throws java.io.FileNotFoundException,
java.io.IOException
fileName - file name of the where the item existsitemSerializer - item serializer to decode the item
java.io.FileNotFoundException - if file does not found
java.io.IOException - if file operation fails| Method Detail |
|---|
public void close()
throws java.io.IOException
java.io.IOException - if file operation fails
public T getItem(long location,
int length)
throws java.io.IOException
location - item locationlength - item length
java.io.IOException
public java.lang.Object getItemAttributeValue(long location,
int length,
java.lang.String name)
throws java.io.IOException
location - item locationlength - item lengthname - attribute name
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||