Package org.openqa.selenium.json
Class JsonInput
- java.lang.Object
-
- org.openqa.selenium.json.JsonInput
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class JsonInput extends java.lang.Object implements java.io.Closeable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonInputaddCoercers(java.lang.Iterable<TypeCoercer<?>> coercers)JsonInputaddCoercers(TypeCoercer<?>... coercers)voidbeginArray()voidbeginObject()voidclose()voidendArray()voidendObject()booleanhasNext()booleannextBoolean()java.time.InstantnextInstant()java.lang.StringnextName()java.lang.ObjectnextNull()java.lang.NumbernextNumber()java.lang.StringnextString()JsonTypepeek()PropertySettingpropertySetting(PropertySetting setter)Change how property setting is done.<T> Tread(java.lang.reflect.Type type)voidskipValue()
-
-
-
Method Detail
-
propertySetting
public PropertySetting propertySetting(PropertySetting setter)
Change how property setting is done. It's polite to set the value back once done processing.- Parameters:
setter- The newPropertySettingto use.- Returns:
- The previous
PropertySettingthat has just been replaced.
-
addCoercers
public JsonInput addCoercers(TypeCoercer<?>... coercers)
-
addCoercers
public JsonInput addCoercers(java.lang.Iterable<TypeCoercer<?>> coercers)
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
peek
public JsonType peek()
-
nextBoolean
public boolean nextBoolean()
-
nextName
public java.lang.String nextName()
-
nextNull
public java.lang.Object nextNull()
-
nextNumber
public java.lang.Number nextNumber()
-
nextString
public java.lang.String nextString()
-
nextInstant
public java.time.Instant nextInstant()
-
hasNext
public boolean hasNext()
-
beginArray
public void beginArray()
-
endArray
public void endArray()
-
beginObject
public void beginObject()
-
endObject
public void endObject()
-
skipValue
public void skipValue()
-
read
public <T> T read(java.lang.reflect.Type type)
-
-