|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
public abstract class AbstractIOObject
This is an abstract superclass for all IOObject. It provides basic implementations for all methods of IOthe interface Object. In addition, it also provides static methods which can be used for reading IOObjects from XML strings and input streams / files containing the XML serialization.
| Constructor Summary | |
|---|---|
AbstractIOObject()
|
|
| Method Summary | |
|---|---|
IOObject |
copy()
Returns not a copy but the very same object. |
LoggingHandler |
getLog()
Gets the logging associated with the operator currently working on this IOObject or the global log service if no operator was set. |
java.lang.String |
getSource()
Returns the source of this IOObject (might return null if the source is unknown). |
protected void |
initWriting()
Initializes the writing of this object. |
static IOObject |
read(java.io.InputStream in)
Deserializes an IOObect from the given XML stream. |
void |
setLoggingHandler(LoggingHandler loggingHandler)
Sets the current working operator, i.e. the operator which is currently working on this IOObject. |
void |
setSource(java.lang.String sourceName)
Sets the source of this IOObject. |
void |
write(java.io.OutputStream out)
Just serializes this object with help of a XMLSerialization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractIOObject()
| Method Detail |
|---|
public void setSource(java.lang.String sourceName)
setSource in interface IOObjectpublic java.lang.String getSource()
getSource in interface IOObjectpublic LoggingHandler getLog()
getLog in interface IOObjectpublic void setLoggingHandler(LoggingHandler loggingHandler)
setLoggingHandler in interface IOObjectpublic IOObject copy()
ExampleSets) should
overwrite this method and return a proper copy.
copy in interface IOObjectprotected void initWriting()
public final void write(java.io.OutputStream out)
throws java.io.IOException
XMLSerialization.
Initializes initWriting() before the actual writing is performed.
write in interface IOObjectjava.io.IOException
public static IOObject read(java.io.InputStream in)
throws java.io.IOException
java.io.IOException - if any IO error occurs.
java.lang.IllegalStateException - if XMLSerialization.init(ClassLoader) has never been called.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||