org.caleigo.core
Class EntityReader
java.lang.Object
java.io.Reader
java.io.FilterReader
org.caleigo.core.EntityReader
- public class EntityReader
- extends java.io.FilterReader
The EntityReader is a FilterReader that adds read methods for reading
entities, selections and related data.
- Version:
- 1.00
- Author:
- Dennis Zikovic
Fields inherited from class java.io.FilterReader |
in |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
EntityReader(java.io.Reader in)
|
EntityReader(java.io.Reader in,
int fieldSeparator,
int entitySeparator)
|
Methods inherited from class java.io.FilterReader |
close, mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.io.Reader |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityReader
public EntityReader(java.io.Reader in)
EntityReader
public EntityReader(java.io.Reader in,
int fieldSeparator,
int entitySeparator)
readEntity
public IEntity readEntity(IEntityDescriptor entityDescriptor)
throws java.io.IOException
- Throws:
java.io.IOException
readMappedSelection
public ISelection readMappedSelection(IEntityDescriptor entityDescriptor)
throws java.io.IOException
- Reads a mapped selection from the Reader until end of data. Using this
method makes it possible to read from files that has an old entity
descriptor that has changed since the data was written.
- Throws:
java.io.IOException
getFieldSeparator
public int getFieldSeparator()
setFieldSeparator
public void setFieldSeparator(int character)
getRecordSeparator
public int getRecordSeparator()
setRecordSeparator
public void setRecordSeparator(int character)
getStringDelimiter
public int getStringDelimiter()
setStringDelimiter
public void setStringDelimiter(int character)
getNullValue
public java.lang.String getNullValue()
setNullValue
public void setNullValue(java.lang.String nullString)
readData
protected java.lang.Object readData(DataType dataType)
throws java.io.IOException
- Throws:
java.io.IOException
useStringDelimiter
protected boolean useStringDelimiter(DataType dataType)
Copyright © 2005 Caleigo. All Rights Reserved.