|
||||||||||
| 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 the IOObject interface. 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.
| Nested Class Summary | |
|---|---|
static interface |
AbstractIOObject.InputStreamProvider
This interface is needed since we must reset the stream in case of an exception. |
| Constructor Summary | |
|---|---|
AbstractIOObject()
|
|
| Method Summary | |
|---|---|
void |
appendOperatorToHistory(Operator operator,
OutputPort port)
This method is called if this IOObject is put out of the specified port after being created or processed by the given operator. |
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.util.List<ProcessingStep> |
getProcessingHistory()
This method must return a list of each step of processing steps this IOObject has been made including it's creating operator. |
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(AbstractIOObject.InputStreamProvider inProvider)
|
static IOObject |
read(byte[] buf)
|
static IOObject |
read(java.io.File file)
|
static IOObject |
read(java.io.InputStream in)
Deprecated. Use #read(InputStreamProvider, String) to be able to read all formats (xml zipped/not zipped and binary) |
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 |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
getAnnotations |
| Constructor Detail |
|---|
public AbstractIOObject()
| Method Detail |
|---|
public void setSource(java.lang.String sourceName)
setSource in interface IOObjectpublic java.lang.String getSource()
getSource in interface IOObject
public void appendOperatorToHistory(Operator operator,
OutputPort port)
IOObject
appendOperatorToHistory in interface IOObjectpublic java.util.List<ProcessingStep> getProcessingHistory()
IOObject
getProcessingHistory 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
@Deprecated
public static IOObject read(java.io.InputStream in)
throws java.io.IOException
#read(InputStreamProvider, String) to be able to read all formats (xml zipped/not zipped and binary)
java.io.IOException - if any IO error occurs.
java.lang.IllegalStateException - if XMLSerialization.init(ClassLoader) has never been called.
public static IOObject read(java.io.File file)
throws java.io.IOException
java.io.IOException
public static IOObject read(byte[] buf)
throws java.io.IOException
java.io.IOException
public static IOObject read(AbstractIOObject.InputStreamProvider inProvider)
throws java.io.IOException
java.io.IOException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||