public class Stio
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Stio.IInputDriver |
static interface |
Stio.IOutputDriver |
static class |
Stio.JS
Set of convinient methods to access data from JSON structure
String email = JS.from(jsonString).at("user").getString("email");
//
String expiresAt = JS.from(jsonString).at("user").at("tokens").at(i).getString("expires_at");
|
static class |
Stio.JSONIn |
static class |
Stio.JSONOut |
static class |
Stio.Output |
static class |
Stio.OutputOnBuilder |
static class |
Stio.OutputOnWriter |
static interface |
Stio.Structured |
static interface |
Stio.TypeAdapter |
| Constructor and Description |
|---|
Stio() |
| Modifier and Type | Method and Description |
|---|---|
static Stio.TypeAdapter |
adapter(java.lang.Object obj) |
Stio.TypeAdapter |
adapterForType(java.lang.String type) |
static java.lang.String |
getClassName(java.lang.Object obj) |
static java.lang.Object |
newInstance(java.lang.Class ofClass)
Tries to create an instance of specified class with using different approaches
1) instantiate via default contructor
2) if failed, check iterate through all declared constructor and tries to instantiate with null args
3) if failed throws exception
|
void |
setTypeAdapter(java.lang.Class clazz,
java.lang.String type,
Stio.TypeAdapter adapter) |
public Stio.TypeAdapter adapterForType(java.lang.String type)
public static Stio.TypeAdapter adapter(java.lang.Object obj)
public void setTypeAdapter(java.lang.Class clazz,
java.lang.String type,
Stio.TypeAdapter adapter)
public static java.lang.Object newInstance(java.lang.Class ofClass)
throws java.lang.InstantiationException
ofClass - type of instance to be createdjava.lang.InstantiationExceptionpublic static java.lang.String getClassName(java.lang.Object obj)
obj - object to get class name ofClass or class name of Object or of full class
name stored in String.Copyright © 2018 DAO Engineering. All rights reserved.