|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.io.AbstractReader
public abstract class AbstractReader
Base class for all the readers.
| Constructor Summary | |
|---|---|
AbstractReader(InputStream in,
String name)
Constructor for AbstractReader. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the reader. |
static Column |
createColumn(String type,
String label)
Creates a column of the specified type and name. |
BufferedReader |
getBufferedReader()
Returns a BufferedReader associated with this stream, creating it if it does not exist yet. |
String |
getEncoding()
Returns the default encoding of this reader. |
InputStream |
getIn()
Returns the input InputStream. |
String |
getName()
Returns the resource name. |
static String |
guessFieldType(String field)
Guess the field class from a value. |
abstract boolean |
load()
Main method for loading the file. |
void |
setEncoding(String encoding)
Sets the default encoding of this reader. |
void |
setIn(InputStream in)
Sets the InputStream. |
void |
setName(String name)
Sets the name. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractReader(InputStream in,
String name)
in - the InputStream for input.name - the resource name.| Method Detail |
|---|
public InputStream getIn()
InputStream.
InputStream.public String getName()
public void setIn(InputStream in)
InputStream.
in - the InputStream
public void close()
throws IOException
IOException - when the underlying stream does sopublic void setName(String name)
name - The name to setpublic static String guessFieldType(String field)
field - the value.
public static Column createColumn(String type,
String label)
type - the type namelabel - the column name
public BufferedReader getBufferedReader()
public abstract boolean load()
throws WrongFormatException
WrongFormatException - if the format is not the one expected.public String getEncoding()
public void setEncoding(String encoding)
encoding - the default encoding of this reader.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||