|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
obix.xml.XWriter
obix.io.ObixEncoder
obixserver.core.ControlledObixEncoder
public class ControlledObixEncoder
Encoder that can be controlled to emit only a subset of tree instead of recursing to all children
Field Summary | |
---|---|
private int |
indent
|
private int |
maxRecursion
Recursion level to include into. |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
ControlledObixEncoder(OutputStream out,
int maxRecursion)
|
Method Summary | |
---|---|
void |
encode(obix.Obj obj)
|
void |
encode(String serverName,
obix.Obj obj)
Encode an object and it's children. |
private boolean |
isMaxRecursionReached()
|
static String |
toString(obix.Obj obj)
Encode the specified obj to an internal String. |
static String |
toString(obix.Obj obj,
int recurseLevel)
|
static String |
toString(String serverName,
obix.Obj obj,
int recurseLevel)
Encode the specified obj to an internal String. |
Methods inherited from class obix.io.ObixEncoder |
---|
dump, encodeDocument |
Methods inherited from class obix.xml.XWriter |
---|
attr, close, flush, indent, isZipped, nl, prolog, safe, safe, safe, safe, safe, setZipped, w, w, w, w, w, w, w, write, write, write, write, write |
Methods inherited from class java.io.Writer |
---|
append, append, append |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int maxRecursion
private int indent
Constructor Detail |
---|
public ControlledObixEncoder(OutputStream out, int maxRecursion) throws IOException
IOException
Method Detail |
---|
public void encode(obix.Obj obj) throws IOException
encode
in class obix.io.ObixEncoder
IOException
public void encode(String serverName, obix.Obj obj) throws IOException
IOException
private boolean isMaxRecursionReached()
public static String toString(obix.Obj obj)
public static String toString(obix.Obj obj, int recurseLevel)
public static String toString(String serverName, obix.Obj obj, int recurseLevel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |