public class JZtxtcmdTester
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
sVersion
Version, history and license.
|
Constructor and Description |
---|
JZtxtcmdTester() |
Modifier and Type | Method and Description |
---|---|
static void |
dataHtml(java.lang.Object data,
java.io.File file)
Same as
dataHtml(Object, File, boolean) but with default arg bNoHash = true. |
static void |
dataHtml(java.lang.Object data,
java.io.File path,
boolean bNoHash)
Generates a html file which contains the description of all data contained in referred in the given data instance.
|
static void |
dataHtml(java.lang.Object data,
JZtxtcmdFilepath file)
Same as
dataHtml(Object, JZtxtcmdFilepath, boolean) but with default arg bNoHash = true. |
static void |
dataHtml(java.lang.Object data,
JZtxtcmdFilepath file,
boolean bNoHash)
Generates a html file which contains the description of all data contained in referred in the given data instance.
|
static void |
dataHtmlNoExc(java.lang.Object data,
java.io.File path,
boolean bNoHash)
Same as
dataHtml(Object, JZtxtcmdFilepath, boolean) but writes to System.err instead Exception. |
static void |
dataTree(java.lang.Object data,
java.lang.Appendable out,
int maxRecurs) |
static void |
dataTreeXml(java.lang.Object data,
java.lang.Appendable out,
int maxRecurs) |
double |
debugAdd0()
This method is only intend to set a breakpoint into it.
|
void |
debugData(java.lang.Object data) |
boolean |
debugFalse()
This method is only intend to set a breakpoint into it.
|
void |
debugField(java.lang.String ident) |
void |
debugMethod(java.lang.String ident) |
double |
debugMult1()
This method is only intend to set a breakpoint into it.
|
boolean |
debugTrue()
This method is only intend to set a breakpoint into it.
|
java.lang.CharSequence |
info(java.lang.Object obj)
Returns an information about the given obj:
It returns the "Type=< clazz.getCanonicalType()>; toString=< toStringValue>;"
|
java.lang.CharSequence |
infoln(java.lang.CharSequence start,
java.lang.Object obj)
Same as
info(Object) as one line |
void |
mapToFile(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.Appendable wr,
int indent)
Writes the content of a Map into a Appendable for debugging.
|
void |
mapToFile(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.String sFile) |
int |
stop()
This method is only intend to set a breakpoint into it.
|
public static final java.lang.String sVersion
dataHtml(Object, JZtxtcmdFilepath, boolean)
now writes a Map as container, not in its original storage form.
and writes a <
in html with <
dataHtml(Object, JZtxtcmdFilepath, boolean)
can decide whether the true hash code is shown
(for search the instance proper to a Object.toString()-output with @hash or a unique hash is shown for compare ability of 2 html files.j
JZtxtcmdTester
.
public java.lang.CharSequence info(java.lang.Object obj)
obj
- Any objectpublic java.lang.CharSequence infoln(java.lang.CharSequence start, java.lang.Object obj)
info(Object)
as one linestart
- text before "Type=..."obj
- Any objectpublic void mapToFile(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.String sFile) throws java.io.IOException
java.io.IOException
public void mapToFile(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.Appendable wr, int indent) throws java.io.IOException
map
- Any map with String key, especially Variables from JZcmd.wr
- Destinationindent
- Number of indents.java.io.IOException
public void debugField(java.lang.String ident)
public void debugMethod(java.lang.String ident)
public static void dataTree(java.lang.Object data, java.lang.Appendable out, int maxRecurs) throws java.io.IOException
java.io.IOException
public static void dataTreeXml(java.lang.Object data, java.lang.Appendable out, int maxRecurs) throws java.io.IOException
java.io.IOException
public static void dataHtml(java.lang.Object data, JZtxtcmdFilepath file, boolean bNoHash) throws java.io.IOException, java.lang.NoSuchFieldException
DataShow.outHtml(Object, Appendable)
- that capability is used. This is only a wrapper method
to adapt a given File path in a JZcmd environment. The file is created or overwritten and closed after them.data
- Any instancefile
- The description of the filebNoHash
- true than a @ hash from toString() will be replaced by the internal id to save compare ability.java.io.IOException
- on file system errorjava.lang.NoSuchFieldException
- if the JZcmdFilepath access an internal variable which is not given. It is not expected usual.public static void dataHtml(java.lang.Object data, JZtxtcmdFilepath file) throws java.io.IOException, java.lang.NoSuchFieldException
dataHtml(Object, JZtxtcmdFilepath, boolean)
but with default arg bNoHash = true.
standard behavior: replace the hash with a unique id to save compare ability.java.io.IOException
java.lang.NoSuchFieldException
public static void dataHtml(java.lang.Object data, java.io.File path, boolean bNoHash) throws java.io.IOException
DataShow.outHtml(Object, Appendable)
- that capability is used. This is only a wrapper method
to offer this method without effort in usage. The file is created or overwritten and closed after them.
Note: a variant with a String given path is not supported because they may dubieties with the current directory.data
- Any instancepath
- An usual absolute file path in a File objectbNoHash
- true than a @ hash from toString() will be replaced by the internal id to save compare ability.java.io.IOException
public static void dataHtmlNoExc(java.lang.Object data, java.io.File path, boolean bNoHash)
dataHtml(Object, JZtxtcmdFilepath, boolean)
but writes to System.err instead Exception.data
- Any instancepath
- An usual absolute file path in a File objectbNoHash
- true than a @ hash from toString() will be replaced by the internal id to save compare ability.public static void dataHtml(java.lang.Object data, java.io.File file) throws java.io.IOException, java.lang.NoSuchFieldException
dataHtml(Object, File, boolean)
but with default arg bNoHash = true.
standard behavior: replace the hash with a unique id to save compareability.java.io.IOException
java.lang.NoSuchFieldException
public boolean debugFalse()
public boolean debugTrue()
public double debugMult1()
public double debugAdd0()
public void debugData(java.lang.Object data)
public int stop()