public class TimeZoneFactory extends Object implements JsonReader.ClassFactory
All custom writers for json-io subclass this class. Special writers are not needed for handling user-defined classes. However, special writers are built/supplied by json-io for many of the primitive types and other JDK classes simply to allow for a more concise form.
Constructor and Description |
---|
TimeZoneFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
isObjectFinal() |
Object |
newInstance(Class<?> c,
JsonObject jObj,
ReaderContext context)
Implement this method to return a new instance of the passed in Class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
gatherRemainingValues, newInstance
public Object newInstance(Class<?> c, JsonObject jObj, ReaderContext context)
JsonReader.ClassFactory
newInstance
in interface JsonReader.ClassFactory
c
- Class of the object that needs to be createdjObj
- JsonObject (if primitive type do jObj.getPrimitiveValue();context
- ReaderContext for creating objects an getting read optionspublic boolean isObjectFinal()
isObjectFinal
in interface JsonReader.ClassFactory
Copyright © 2023. All rights reserved.