|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.presentation.Source
biz.c24.io.api.presentation.SSSource
public class SSSource
Data reader implementation for a SpreadSheet workbook.
Provides facility for readingdata object tree
from SpreadSheet
workbook.
SSSink
,
Source
,
SpreadSheetReader
,
biz.c24.io.api.presentation.stream
,
Serialized FormConstructor Summary | |
---|---|
SSSource()
Default constructor. |
|
SSSource(InputStream stream)
Constructor with intput stream. |
|
SSSource(Source other)
Constructor with another SpreadSheet reader instance. |
Method Summary | |
---|---|
Object |
clone()
Returns clone of this data reader. |
String |
getStartLocation()
Returns the start location. |
void |
readObject(ComplexDataObject object)
Reads an object from the the reader or input stream that has been set (optional operation). |
ComplexDataObject |
readObject(Element element)
Reads an object from the the reader or input stream that has been set. |
void |
setReader(Reader reader)
Sets the reader (optional operation). |
void |
setStartLocation(String start)
Sets the start location. |
Methods inherited from class biz.c24.io.api.presentation.Source |
---|
checkInit, getEncoding, getInputStream, getMarkableInputStream, getParseListener, getReader, getSystemId, reader, ready, setEncoding, setInputStream, setInputStream, setParseListener, setReader, setSystemId, stream |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSSource()
public SSSource(Source other)
other
. Cloning procedure the same as standard
cloning method
other
- The instance to clone.public SSSource(InputStream stream)
stream
. The format will be detected
automatically. In case if data format is not supported the
corresponding exception will throw
.
stream
- The stream to write the data to.Method Detail |
---|
public String getStartLocation()
public void setStartLocation(String start)
start
- The start location.getStartLocation()
public void setReader(Reader reader)
exception
because this implementation could not use the
reader
.
setReader
in class Source
reader
- The new value.
UnsupportedOperationException
- If this source does not support input from a java.io.Reader, in which case
a java.io.InputStream should be used.public void readObject(ComplexDataObject object) throws IOException
exception
.
readObject
in class Source
object
- The object into which the input data should be parsed.
IOException
- If the complete object could not be read for any reason.
IllegalArgumentException
- If neither a reader nor an input stream has been set.
UnsupportedOperationException
- If this source does not support this method, in which case
readObject(Element)
should be used.public ComplexDataObject readObject(Element element) throws IOException
data object tree
that is bound to the SpreadSheet
previously specified by incoming data stream
.
readObject
in class Source
element
- The element declaration to which the input data is expected to adhere.
IOException
- If the complete object could not be read for any reason.
IllegalArgumentException
- If neither a reader nor an input stream has been set.public Object clone()
clone
in class Source
start location
.SSSource(Source)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |