|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.data.Serialize
public final class Serialize
This class provides serialization methods for the database contents.
| Method Summary | |
|---|---|
static byte[] |
content(Data data,
int p,
boolean s)
Convenience method, returning a string representation of the current node. |
static void |
decl(PrintOutput out)
Prints the text declaration to the output stream. |
static java.lang.String |
node(Data data,
int p)
Convenience method, returning a string representation of the current node. |
static void |
table(PrintOutput out,
Data data,
int s,
int e)
Writes the database as table. |
static void |
table(PrintOutput out,
Data data,
Nodes nodes)
Writes the database as table. |
static void |
xml(PrintOutput out,
byte[] pref,
byte[] val,
byte[] suff)
Writes a node. |
static int |
xml(PrintOutput out,
Data data,
int pos)
Writes the specified XML node and all its sub nodes to the specified output stream. |
static int |
xml(PrintOutput out,
Data data,
int pre,
boolean val,
boolean ent)
Prints the specified node to the output stream. |
static void |
xml(PrintOutput out,
Data data,
Nodes nodes,
boolean valid)
Prints the specified node set to the output stream. |
static void |
xml(ResultReader rr,
Data data,
int pos)
Writes the specified XML node and all its sub nodes to the specified output stream. |
static void |
xml(ResultReader rr,
Data data,
Nodes nodes)
Prints the specified node set to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] content(Data data,
int p,
boolean s)
data - data referencep - pre values - short representation
public static void decl(PrintOutput out)
throws java.io.IOException
out - output stream
java.io.IOException - in case of problems with the PrintOutput
public static java.lang.String node(Data data,
int p)
data - data referencep - pre value
public static void table(PrintOutput out,
Data data,
int s,
int e)
throws java.io.IOException
out - output streamdata - data references - first node to be writtene - last node to be written
java.io.IOException - build or write error
public static void table(PrintOutput out,
Data data,
Nodes nodes)
throws java.io.IOException
out - output streamdata - data referencenodes - node set
java.io.IOException - build or write error
public static void xml(PrintOutput out,
byte[] pref,
byte[] val,
byte[] suff)
throws java.io.IOException
out - output streampref - prefixsuff - suffixval - value to be written
java.io.IOException - in case of problems with the PrintOutput
public static int xml(PrintOutput out,
Data data,
int pos)
throws java.io.IOException
out - writer instancedata - data referencepos - XML node to be written
java.io.IOException - in case of problems with the PrintOutput
public static int xml(PrintOutput out,
Data data,
int pre,
boolean val,
boolean ent)
throws java.io.IOException
out - output streamdata - data referenceval - valid flagpre - table positionent - dissolve entities
java.io.IOException - in case of problems with the PrintOutput
public static void xml(PrintOutput out,
Data data,
Nodes nodes,
boolean valid)
throws java.io.IOException
out - output streamdata - data referencevalid - valid flagnodes - node set
java.io.IOException - in case of problems with the PrintOutput
public static void xml(ResultReader rr,
Data data,
int pos)
throws org.xml.sax.SAXException
rr - default handlerdata - data referencepos - XML node to be written
org.xml.sax.SAXException - SAX exception
public static void xml(ResultReader rr,
Data data,
Nodes nodes)
throws org.xml.sax.SAXException
rr - default handlerdata - data referencenodes - node set
org.xml.sax.SAXException - SAX exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||