|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.xml.XMLCellFactory
public class XMLCellFactory
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 XML 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 xml)
Factory method to create DataCell representing
Document. |
static DataCell |
create(XMLValue xml)
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 xml)
throws IOException,
ParserConfigurationException,
SAXException,
XMLStreamException
DataCell representing
Document.
The returned cell is either of type XMLCell (for small documents)
or XMLBlobCell (otherwise, default threshold is
8192 bytes or larger).
xml - String representing the XML document
IOException - if an io error occurs while reading the XML 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 XMLCell (for small documents)
or XMLBlobCell (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 XMLCell (for small documents)
or XMLBlobCell (otherwise, default threshold is
8192 bytes or larger).
is - The stream containing the XML document
IOException - if an io error occurs while reading the XML string
SAXException - if an error occurs while parsing
ParserConfigurationException - if the parser cannot be instantiated
XMLStreamException
NullPointerException - if argument is nullpublic static DataCell create(XMLValue xml)
DataCell representing
Document.
The returned cell is either of type XMLCell (for small documents)
or XMLBlobCell (otherwise, default threshold is
8192 bytes or larger).
xml - The cell represents this value.
NullPointerException - if argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||