|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.util.JStringBuilder
org.jnetpcap.util.ExpandableString
org.jnetpcap.util.config.ConfigString
public class ConfigString
Expandable string that allows configuration variables and properties to be expanded.
| Field Summary |
|---|
| Fields inherited from class org.jnetpcap.util.ExpandableString |
|---|
count, end, start |
| Constructor Summary | |
|---|---|
ConfigString(java.lang.String template,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
Instantiates a new config string. |
|
| Method Summary | |
|---|---|
boolean |
expand(java.lang.String name)
Expand. |
boolean |
expand(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables)
Expand. |
boolean |
expand(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
Expand. |
boolean |
expand(java.lang.String name,
java.util.Properties properties)
Expand. |
boolean |
expandProperties(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
Expand properties. |
boolean |
expandVariables(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
Replaces variables and properties with their values, and null if anything is not defined. |
ConfigString |
reset()
Reset. |
| Methods inherited from class org.jnetpcap.util.ExpandableString |
|---|
getTemplate, remove, replaceSequence, restoreQuotes, saveQuotes, scanNext, scanNext, setTemplate, template, toString |
| Methods inherited from class org.jnetpcap.util.JStringBuilder |
|---|
append, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, capacity, charAt, codePointAt, codePointBefore, codePointCount, delete, deleteCharAt, ensureCapacity, equals, getChars, hashCode, indexOf, indexOf, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, insert, lastIndexOf, lastIndexOf, length, offsetByCodePoints, replace, reverse, setCharAt, setLength, subSequence, substring, substring, trimToSize |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigString(java.lang.String template,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
template - the templatevariables - the variablesproperties - the properties| Method Detail |
|---|
public boolean expand(java.lang.String name)
name - the name
public boolean expand(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables)
name - the namevariables - the variables
public boolean expand(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
name - the namevariables - the variablesproperties - the properties
public boolean expand(java.lang.String name,
java.util.Properties properties)
name - the nameproperties - the properties
public boolean expandProperties(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
name - the namevariables - the variablesproperties - the properties
public boolean expandVariables(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> variables,
java.util.Properties properties)
name - special name variable that will replace $name$ in the stringvariables - the variablesproperties - properties
public ConfigString reset()
reset in class ExpandableStringExpandableString.reset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||