|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.xml.PMMLCellFactory
public class PMMLCellFactory
Cell factory that creates XML cells. Depending on the size either normal
DataCells or BlobDataCells are created.
| Field Summary | |
|---|---|
static int |
DEF_MIN_BLOB_SIZE_IN_BYTES
Minimum size for blobs in bytes. |
static DataType |
TYPE
Type for PMML cells. |
| Method Summary | |
|---|---|
static DataCell |
create(Document dom)
Factory method to create DataCell representing
Document. |
static DataCell |
create(InputStream is)
Factory method to create DataCell representing
Document. |
static DataCell |
create(String pmml)
Factory method to create DataCell representing
Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEF_MIN_BLOB_SIZE_IN_BYTES
public static final DataType TYPE
| Method Detail |
|---|
public static DataCell create(String pmml)
throws IOException,
ParserConfigurationException,
SAXException,
XMLStreamException
DataCell representing
Document.
The returned cell is either of type PMMLCell (for small documents)
or PMMLBlobCell (otherwise, default threshold is
8192 bytes or larger).
pmml - String representing the PMML document
IOException - if an io error occurs while reading the PMML string
SAXException - if an error occurs while parsing
ParserConfigurationException - if the parser cannot be instantiated
XMLStreamException
NullPointerException - if argument is nullpublic static DataCell create(Document dom)
DataCell representing
Document.
The returned cell is either of type PMMLCell (for small documents)
or PMMLBlobCell (otherwise, default threshold is
8192 bytes or larger).
dom - the returned data cell encapsulates this DOM
NullPointerException - if argument is null
public static DataCell create(InputStream is)
throws IOException,
ParserConfigurationException,
SAXException,
XMLStreamException
DataCell representing
Document.
The returned cell is either of type PMMLCell (for small documents)
or PMMLBlobCell (otherwise, default threshold is
8192 bytes or larger).
is - The stream containing the PMML document
IOException - if an io error occurs while reading the PMML string
SAXException - if an error occurs while parsing
ParserConfigurationException - if the parser cannot be instantiated
XMLStreamException
NullPointerException - if argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||