|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.presentation.Sink
biz.c24.io.api.presentation.SSSink
public class SSSink
Data writer implementation for a SpreadSheet workbook.
Provides facility for serializationdata object tree
into SpreadSheet
workbook.
SSSource
,
Sink
,
SpreadSheetWriter
,
biz.c24.io.api.presentation.stream
,
Serialized FormConstructor Summary | |
---|---|
SSSink()
Default constructor. |
|
SSSink(OutputStream stream)
Constructor with output stream. |
|
SSSink(SSSink other)
Constructor with another SpreadSheet writer instance. |
Method Summary | |
---|---|
Object |
clone()
Returns clone of this data writer. |
int |
getFormat()
Returns the result SpreadSheet format. |
String |
getStartLocation()
Returns the start location. |
void |
setFormat(int format)
Sets the result SpreadSheet format. |
void |
setStartLocation(String start)
Sets the start location. |
void |
setWriter(Writer writer)
Sets the writer (optional operation). |
void |
writeObject(ComplexDataObject obj)
Writes an object to the writer or output stream that has been set
previously. |
Methods inherited from class biz.c24.io.api.presentation.Sink |
---|
checkInit, clearBatchIterators, getEncoding, getOutputStream, getWriter, registerBatchIterator, setEncoding, setOutputStream, stream, unregisterBatchIterator, writer |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSSink()
public SSSink(SSSink other)
clone
. Cloning procedure the same as standard
cloning method
other
- The instance to clone.public SSSink(OutputStream stream)
stream
.
stream
- The stream to write the data to.Method Detail |
---|
public String getStartLocation()
public void setStartLocation(String start)
start
- The start location.getStartLocation()
public int getFormat()
BIFF
.
public void setFormat(int format)
format
- The format identifier, one from supported.getFormat()
public void setWriter(Writer writer)
exception
because this implementation could not use the
writer
.
setWriter
in class Sink
writer
- The new value.
UnsupportedOperationException
- If this source does not support output to a java.io.Writer, in which case a java.io.OutputStream should be used.public Object clone()
clone
in class Sink
format
and start location
.SSSink(SSSink)
public void writeObject(ComplexDataObject obj) throws IOException
has been set
previously.
writeObject
in class Sink
obj
- The object to be written.
IOException
- If the complete object could not be written for any reason.
IllegalArgumentException
- If neither a writer nor an output stream has been set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |