Skip navigation links
A B C D E F G H I L M N O P R S T U V W 

A

AbstractContainer - Class in com.newpixelcoffee.odin.elements
 
AbstractContainer() - Constructor for class com.newpixelcoffee.odin.elements.AbstractContainer
 
accept(T) - Method in interface com.newpixelcoffee.odin.access.IOConsumer
 
add(Object) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Write an object, if object is not a primitive or an Object, the type definition is added before the object.
add(T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Create and add a OdinObject with the given value to this array
add(String, T) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Create and add a OdinObject with the given name and value to this node
add(Object) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addAll(Collection<?>) - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
addAll(Map<String, ?>) - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
addArray() - Method in class com.newpixelcoffee.odin.elements.OdinArray
Add a new OdinArray to this array
addArray(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Add a new OdinArray with the given name to this node
addBoolean(boolean) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a boolean to the row
addBoolean(boolean) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addByte(byte) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a byte to the row
addByte(byte) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addChar(char) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a char to the row
addChar(char) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addComment(String) - Method in class com.newpixelcoffee.odin.elements.OdinExtra
Add comment to this extra.
Empty lines are represented by empty string.
addComments(String[]) - Method in class com.newpixelcoffee.odin.elements.OdinExtra
Add comments to this extra.
Empty lines are represented by empty string.
addComments(Collection<String>) - Method in class com.newpixelcoffee.odin.elements.OdinExtra
Add comments to this extra.
Empty lines are represented by empty string.
addDouble(double) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a double to the row
addDouble(double) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addElement(T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Add a OdinElement to this array.
addElement(String, T) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Add a OdinElement with the given name to this node
addElementIfAbsent(String, T) - Method in class com.newpixelcoffee.odin.elements.OdinNode
If no elements with the given name is found, the given element will be added.
Else if an element is found, this method return it without any modifications.
addElementTo(int, T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Add a OdinElement to the specified position.
addElementTo(int, String, T) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Add a OdinElement with the given name to this node at the specified index
addFloat(float) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a float to the row
addFloat(float) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addIfAbsent(String, T) - Method in class com.newpixelcoffee.odin.elements.OdinNode
If no elements with the given name is found it will be added with the given value.
Else if an element is found, this method return it without any modifications.
addInt(int) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a int to the row
addInt(int) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addLong(long) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a long to the row
addLong(long) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addNode() - Method in class com.newpixelcoffee.odin.elements.OdinArray
Add a new OdinNode to this array
addNode(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Add a new OdinNode with the given name to this node
addShort(short) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a short to the row
addShort(short) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addSpace() - Method in class com.newpixelcoffee.odin.elements.OdinExtra
Add an empty line to this extra.
addSpace(int) - Method in class com.newpixelcoffee.odin.elements.OdinExtra
Add multiple empty lines to this extra.
addString(String) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Add a String to the row
addString(String) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addSubContent(IOConsumer<OdinWriter>) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Use a consumer to write content to a sub object.
addSubContent(IOConsumer<OdinWriter>) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addTo(int, T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Add a new OdinObject with the given value to the specified position.
addTo(int, String, T) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Create and add a OdinObject with the given name and value to this node at the specified index
addTyped(T, AnyType<T>) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Write an object, if the object class is not the same than type class, like implementation, the type definition is added before the object.
This method take a odin type to be use inside adapter by using ObjectType.getField(String) or all other field getter and TypeField.getType()
addTyped(Object, Type) - Method in interface com.newpixelcoffee.odin.access.OdinRowWriter
Write an object, odin get the AnyType associated to the given type, if the object class is not the same than type class, like implementation, the type definition is added before the object.
Custom type can be created to add generic argument ( can be useful for collection ) by using TypeBuilder.
addTyped(T, AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
addTyped(Object, Type) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
AnyType<T> - Interface in com.newpixelcoffee.odin
This object is the parent of every odin types, this type can be primitive, array, unknown type, or ObjectType.
AnyTypeImpl<T> - Class in com.newpixelcoffee.odin.internal.types
 
AnyTypeImpl() - Constructor for class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
array - Variable in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
ArrayTypeImpl<T,E> - Class in com.newpixelcoffee.odin.internal.types
 
ArrayTypeImpl(AnyTypeImpl<E>) - Constructor for class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
asArray() - Method in class com.newpixelcoffee.odin.elements.OdinElement
 
asNode() - Method in class com.newpixelcoffee.odin.elements.OdinElement
 
asObject() - Method in interface com.newpixelcoffee.odin.AnyType
 
asObject() - Method in class com.newpixelcoffee.odin.elements.OdinElement
 
asObject() - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 

B

BooleanArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
BooleanObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
BooleanObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.BooleanObjectType
 
BooleanType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
BooleanType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
buildContentExtra(Consumer<OdinExtra>) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Build the element content extra by using a consumer.
If this element already contains content extra, the consumer is called with it, else new extra is created.
Content extra contains comments and empty lines that appear after the last child of this element in odn.
If this element has no children, this content extra contains all comments and empty lines.
buildExtra(Consumer<OdinExtra>) - Method in class com.newpixelcoffee.odin.elements.OdinElement
Build the element extra by using a consumer.
If this element already contains extra, the consumer is called with it, else new extra data is created.
ByteArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
ByteObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
ByteObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.ByteObjectType
 
ByteType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
ByteType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 

C

changeIndentation(String) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
changeParameter(DateTimeFormatter) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateAdapter
 
changeParameter(DateTimeFormatter) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateTimeAdapter
 
changeParameter(DateTimeFormatter) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalTimeAdapter
 
changeParameter(DateTimeFormatter) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultZonedDateTimeAdapter
 
changeParameter(DateTimeFormatter) - Method in interface com.newpixelcoffee.odin.internal.defaults.LocalDateTimeAdapterParameter
 
CharArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
CharObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
CharObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.CharObjectType
 
CharType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
CharType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
ClassTypeImpl<T> - Class in com.newpixelcoffee.odin.internal.types
 
clear() - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
 
clear() - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
clear() - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
close() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
close() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
close() - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
close() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
closeObject(char) - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
closeObject(char) - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
closeObject(char) - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
closeObject(char) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
com.newpixelcoffee.odin - package com.newpixelcoffee.odin
 
com.newpixelcoffee.odin.access - package com.newpixelcoffee.odin.access
 
com.newpixelcoffee.odin.adapters - package com.newpixelcoffee.odin.adapters
 
com.newpixelcoffee.odin.annotations - package com.newpixelcoffee.odin.annotations
 
com.newpixelcoffee.odin.elements - package com.newpixelcoffee.odin.elements
 
com.newpixelcoffee.odin.exceptions - package com.newpixelcoffee.odin.exceptions
 
com.newpixelcoffee.odin.internal - package com.newpixelcoffee.odin.internal
 
com.newpixelcoffee.odin.internal.collections - package com.newpixelcoffee.odin.internal.collections
 
com.newpixelcoffee.odin.internal.defaults - package com.newpixelcoffee.odin.internal.defaults
 
com.newpixelcoffee.odin.internal.processor - package com.newpixelcoffee.odin.internal.processor
 
com.newpixelcoffee.odin.internal.streams - package com.newpixelcoffee.odin.internal.streams
 
com.newpixelcoffee.odin.internal.types - package com.newpixelcoffee.odin.internal.types
 
com.newpixelcoffee.odin.internal.types.primitives - package com.newpixelcoffee.odin.internal.types.primitives
 
compressOutput() - Method in class com.newpixelcoffee.odin.Odin
Change output to be short as possible, ',' is used as entry separator and no new line or indentation is used.
Example with a simple node write to file :
compressSubObjects() - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
compressSubObjects() - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
compressSubObjects() - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
compressSubObjects() - Method in interface com.newpixelcoffee.odin.OdinWriter
Say to current writer that all sub objects need to be written using inline format.
If this writer is already an inline or a compressed writer, this method do nothing.
Inline format use ', ' and ' = ' as separator :
compute(Function<OdinArray, V>) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Run a function with this array as parameter.
compute(Function<OdinNode, V>) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Run a function with this node as parameter.
compute(Function<OdinObject<T>, V>) - Method in class com.newpixelcoffee.odin.elements.OdinObject
Run a function with this object as parameter.
contains(T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
contains(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
content - Variable in class com.newpixelcoffee.odin.internal.WriterImpl
 

D

dateFormat - Variable in class com.newpixelcoffee.odin.internal.defaults.DefaultDateAdapter
 
DefaultAdapterOption - Interface in com.newpixelcoffee.odin.adapters
Manage option of the default object adapter
DefaultClassAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultClassAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultClassAdapter
 
DefaultDateAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultDateAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultDateAdapter
 
DefaultEnumAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultEnumAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultEnumAdapter
 
DefaultLocalDateAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultLocalDateAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateAdapter
 
DefaultLocalDateTimeAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultLocalDateTimeAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateTimeAdapter
 
DefaultLocaleAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultLocaleAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultLocaleAdapter
 
DefaultLocalTimeAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultLocalTimeAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultLocalTimeAdapter
 
DefaultObjectAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultObjectAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
DefaultUuidAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultUuidAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultUuidAdapter
 
DefaultZonedDateTimeAdapter - Class in com.newpixelcoffee.odin.internal.defaults
 
DefaultZonedDateTimeAdapter() - Constructor for class com.newpixelcoffee.odin.internal.defaults.DefaultZonedDateTimeAdapter
 
DoubleArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
DoubleObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
DoubleObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.DoubleObjectType
 
DoubleType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
DoubleType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 

E

eat(char) - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
Skip all empty char (\s, \t, \r or \n) and get next char.
eatCrLf() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
Skip empty char (\s or \t) and get next char.
eatEnd() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
Skip all empty char (\s or \t) and eat char representing end of value.
ExceptionsStrategy - Enum in com.newpixelcoffee.odin.exceptions
Default Odin exceptions strategy
ExceptionStrategy - Interface in com.newpixelcoffee.odin.exceptions
Define the strategy to use when the Default object adapter reach a RuntimeException.

F

feed(char) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
feed(char[]) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
feed(String) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
feedNewLine() - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
fieldFilter - Variable in class com.newpixelcoffee.odin.internal.types.TypeManager
 
FieldType<T> - Interface in com.newpixelcoffee.odin
Represent a class field.
find(String) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Find element in elements hierarchy.
findField(String) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
findField(String) - Method in interface com.newpixelcoffee.odin.ObjectType
Get field type.
findValue(String) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Find object value in elements hierarchy.
firstNode - Variable in class com.newpixelcoffee.odin.internal.WriterImpl
 
firstRow - Variable in class com.newpixelcoffee.odin.internal.WriterImpl
 
FloatArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
FloatObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
FloatObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.FloatObjectType
 
FloatType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
FloatType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
forceProcessor - Variable in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
formatter - Variable in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateAdapter
New Java 8 LocalDate format.
formatter - Variable in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateTimeAdapter
New Java 8 LocalDateTime format.
formatter - Variable in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalTimeAdapter
New Java 8 LocalTime format.
formatter - Variable in class com.newpixelcoffee.odin.internal.defaults.DefaultZonedDateTimeAdapter
This formatter describe how ZonedDateTime was converted to String.
fromOdn(String) - Method in class com.newpixelcoffee.odin.Odin
Transform an odn string to object using OdinReader.read()
fromOdn(String, Type) - Method in class com.newpixelcoffee.odin.Odin
Transform an odn string to object using OdinReader.readTyped(Type)

G

GenericTypeImpl<T> - Class in com.newpixelcoffee.odin.internal.types
 
get(int) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Get the OdinElement present at the given index.
get(int) - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
get(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Get the OdinElement defined with this name
get(int) - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
getAdapter() - Method in class com.newpixelcoffee.odin.internal.processor.ImmutableProcessor
 
getAdapter() - Method in class com.newpixelcoffee.odin.internal.processor.InlineProcessor
 
getAdapter() - Method in class com.newpixelcoffee.odin.internal.processor.ObjectProcessor
 
getAdapter() - Method in interface com.newpixelcoffee.odin.internal.processor.Processor
 
getAdapter() - Method in class com.newpixelcoffee.odin.internal.processor.RuntimeProcessor
 
getAdapter(Type) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
getAdapter(Type) - Method in class com.newpixelcoffee.odin.Odin
Get the registered adapter for given type, this method retrieve nearest adapter in parents class if the type has no registered adapter
getAdapterArgument(int) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getAdapterArgument(int) - Method in interface com.newpixelcoffee.odin.ObjectType
Get generic argument for the processed class.
For a class A<E> extending B<T> where only B have adapter, this methods return the generic argument know for B ( the adapter type ).
To known the generic arguments of A ( this type ), use ObjectType.getGenericArgument(int)
getAdapterArguments() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getAdapterArguments() - Method in interface com.newpixelcoffee.odin.ObjectType
Get generic arguments for the processed class.
For a class A<E> extending B<T> where only B have adapter, this methods return the generic arguments know for B ( the adapter type ).
To known the generic arguments of A ( this type ), use ObjectType.getGenericArguments()
getClass(String) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
getClassProcessor() - Method in class com.newpixelcoffee.odin.internal.types.ClassTypeImpl
 
getClassProcessor() - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
getClassProcessor() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getComments() - Method in class com.newpixelcoffee.odin.elements.OdinExtra
Get comments and empty lines of this extra.
Empty lines are represented by empty string.
getComments() - Method in interface com.newpixelcoffee.odin.FieldType
Get the field comments.
getComments() - Method in class com.newpixelcoffee.odin.internal.types.TypeField
 
getContent() - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
getContentExtra() - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Get content extra of this element.
Content extra contains comments and empty lines that appear after the last child of this element in odn.
If this element has no children, this content extra contains all comments and empty lines.
getDefaultAdapterOption() - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
getDefaultAdapterOption() - Method in class com.newpixelcoffee.odin.Odin
Change the default object adapter options.
This options allow to change the way to write and read all object without custom adapters for some special case :
- what to do with reflect exception
- what to do with reader exception
- what to do with writer exception
- what to do with null fields value
getElement() - Method in class com.newpixelcoffee.odin.elements.NodeEntry
 
getExtra() - Method in class com.newpixelcoffee.odin.elements.OdinElement
Get extra defined for this element.
Extra contains comments and empty lines that appear before this element if the odn output.
getField() - Method in interface com.newpixelcoffee.odin.FieldType
Get the java reflect field.
getField(String) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getField(String, int) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getField() - Method in class com.newpixelcoffee.odin.internal.types.TypeField
 
getField(String) - Method in interface com.newpixelcoffee.odin.ObjectType
Get field type.
getField(String, int) - Method in interface com.newpixelcoffee.odin.ObjectType
Get field type.
getFieldGetExceptionStrategy() - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Get the strategy to use when a field value can not be read and throw an IllegalAccessException.
getFieldGetExceptionStrategy() - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
getFields() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getFields() - Method in interface com.newpixelcoffee.odin.ObjectType
Get all fields of this AnyType.getType() class, this method does not return field of super class
The result only contains fields that matching the filter defined by Odin.setFieldFilter(Predicate)
getGenericArgument(int) - Method in class com.newpixelcoffee.odin.internal.types.ClassTypeImpl
 
getGenericArgument(int) - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
getGenericArgument(int) - Method in interface com.newpixelcoffee.odin.ObjectType
Get generic argument in given index, if this type does not have generic type arguments, this method return an unknown type instance.
Else this methods load all arguments during the first call to ObjectType.getAdapterArguments() or this method.

For a class A<E> extending B<T> where only B have adapter, this methods return the generic argument know for A ( this type ).
To known the generic arguments of B ( the adapter type ), use ObjectType.getAdapterArgument(int)
getGenericArguments() - Method in class com.newpixelcoffee.odin.internal.types.ClassTypeImpl
 
getGenericArguments() - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
getGenericArguments() - Method in interface com.newpixelcoffee.odin.ObjectType
Get generic arguments array, if this type does not have generic type arguments, this method return an empty type array.
Else this methods load all arguments during the first call to ObjectType.getAdapterArguments() or this method.

For a class A<E> extending B<T> where only B have adapter, this methods return the generic argument know for A ( this type ).
To known the generic arguments of B ( the adapter type ), use ObjectType.getAdapterArguments()
getGenericType() - Method in interface com.newpixelcoffee.odin.AnyType
This method return same value than AnyType.getType() except for generic types using ParameterizedType or any other reflect generic type.
So for List<String>, AnyType.getType() return Class<List> and this method return ParameterizedType 'List<String>' method.
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortObjectType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
getGenericType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
getInstanceType(E) - Method in class com.newpixelcoffee.odin.internal.types.ClassTypeImpl
 
getInstanceType(E) - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
getInstanceType(E) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getInstanceType(E) - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
getMessage() - Method in exception com.newpixelcoffee.odin.exceptions.OdinAdapterException
 
getName() - Method in interface com.newpixelcoffee.odin.AnyType
Get the name of this type, name is used to know the type on the deserialization.
If a field is defined with Object type, and value is a 'Foo' instance, this name is write before the object in the writer.
getName() - Method in class com.newpixelcoffee.odin.elements.NodeEntry
 
getName(int) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Get the name of the OdinElement present at the given index.
getName() - Method in interface com.newpixelcoffee.odin.FieldType
The name of the field.
getName() - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortObjectType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
getName() - Method in class com.newpixelcoffee.odin.internal.types.TypeField
 
getProcessor() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getReaderBufferSize() - Method in class com.newpixelcoffee.odin.Odin
Get the actual buffer size used in OdinReader.
getReaderExceptionStrategy() - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Get the strategy to use when a RuntimeException occur while reading a field value.
getReaderExceptionStrategy() - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
getRecursive(int) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
getSubWriter() - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
getSubWriter() - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
getSubWriter() - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
getSubWriter() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
getSuperClass() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getSuperClass(Class<? super T>) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getSuperClass() - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
getSuperClass(Class<? super Object>) - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
getSuperClass() - Method in interface com.newpixelcoffee.odin.ObjectType
Get the type representing the Class.getGenericSuperclass()
getSuperClass(Class<? super T>) - Method in interface com.newpixelcoffee.odin.ObjectType
Get a super class of this type, the target can be class or interface
getType() - Method in interface com.newpixelcoffee.odin.AnyType
Get class for this type
getType() - Method in interface com.newpixelcoffee.odin.FieldType
Get the field type.
getType() - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortObjectType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
getType() - Method in class com.newpixelcoffee.odin.internal.types.TypeField
 
getType(String) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
getType(Type) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
getType(Type) - Method in class com.newpixelcoffee.odin.Odin
Get the odin type associated to a type, if no odin type is associated to this type, odin will create it.
Class always use the same odin type instance for same Odin instance, except generic types like parameterized type or generic array type, a new odin instance is created for each call to this method.
getType(String) - Method in class com.newpixelcoffee.odin.Odin
Get the odin type associated to a classname or type alias, if no odin type is associated to this type, odin will create it using Class.forName(String).
getTypeManager() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
getTypeManager() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
getUnwantedCharException(String, char) - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
getValue(int) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Get the object value present at the given index.
getValue(int) - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
getValue(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Get the value of the OdinObject defined with this name.
getValue(int) - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
getWriterExceptionStrategy() - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Get the strategy to use when a RuntimeException occur while writing a field value.
getWriterExceptionStrategy() - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 

H

hasContentExtra() - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Get if content extra is defined for this element.
Content extra contains comments and empty lines that appear after the last child of this element in odn.
If this element has no children, this content extra contains all comments and empty lines.
hasExtra() - Method in class com.newpixelcoffee.odin.elements.OdinElement
Get if extra is defined for this element.
Extra contains comments and empty lines that appear before this element if the odn output.
hasNext() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
hasNext() - Method in interface com.newpixelcoffee.odin.OdinReader
Indicates whether there is any data left in the current object.
If comments is present before the next data, it will be skipped.
hasRowNext() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Get if there is any remaining value inside the current row, this method simply test if a ':' separator if found on the stream before any other elements.
hasRowNext() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 

I

ImmutableProcessor<T> - Class in com.newpixelcoffee.odin.internal.processor
 
ImmutableProcessor(OdinImmutableAdapter<T>) - Constructor for class com.newpixelcoffee.odin.internal.processor.ImmutableProcessor
 
indentOutput() - Method in class com.newpixelcoffee.odin.Odin
Change output to be indented and human readable.
indentSubObjects() - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
indentSubObjects() - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
indentSubObjects() - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
indentSubObjects() - Method in interface com.newpixelcoffee.odin.OdinWriter
Say to current writer that all sub object can be rewritten using indented format, this method can be call after OdinWriter.compressSubObjects() to reset format.
If this writer is not an indented writer, this method do nothing
IndentWriterImpl - Class in com.newpixelcoffee.odin.internal
 
IndentWriterImpl(TypeManager, StreamWriter) - Constructor for class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
indexOf(T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Get the position in this array of the OdinObject containing the given value.
indexOf(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Get the position in this node of the OdinElement defined with the given name.
InlineProcessor<T,R> - Class in com.newpixelcoffee.odin.internal.processor
 
InlineProcessor(OdinInlineAdapter<T, R>, AnyTypeImpl<R>) - Constructor for class com.newpixelcoffee.odin.internal.processor.InlineProcessor
 
InlineWriterImpl - Class in com.newpixelcoffee.odin.internal
 
IntArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
IntObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
IntObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.IntObjectType
 
IntType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
IntType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
IOConsumer<T> - Interface in com.newpixelcoffee.odin.access
 
isArray() - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
isArray() - Method in class com.newpixelcoffee.odin.elements.OdinElement
 
isEmpty() - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
 
isIndented() - Method in class com.newpixelcoffee.odin.Odin
Get if writer use an indented output.
isNode() - Method in class com.newpixelcoffee.odin.elements.OdinElement
 
isNode() - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
isNotWriteRecursive(Object) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
isObject() - Method in interface com.newpixelcoffee.odin.AnyType
Get if this type instance is a implementation of ObjectType, if false, this type can be a primitive or an array.
isObject() - Method in class com.newpixelcoffee.odin.elements.OdinElement
 
isObject() - Method in class com.newpixelcoffee.odin.elements.OdinObject
 
isObject() - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
isObject() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
isReadTo() - Method in class com.newpixelcoffee.odin.internal.types.TypeField
 
isSkippingNull() - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Get if the default object adapter write entries containing null as value
isSkippingNull() - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
isThrownByAdapter(String) - Method in exception com.newpixelcoffee.odin.exceptions.OdinAdapterException
 
iterator() - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
iterator() - Method in class com.newpixelcoffee.odin.elements.OdinNode
 

L

ListAdapter - Class in com.newpixelcoffee.odin.internal.collections
 
ListAdapter() - Constructor for class com.newpixelcoffee.odin.internal.collections.ListAdapter
 
listAdapter - Variable in class com.newpixelcoffee.odin.internal.types.TypeManager
 
listen(Consumer<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listen(Consumer<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenBoolean(Consumer<Boolean>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenBoolean(Consumer<Boolean>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenByte(Consumer<Byte>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenByte(Consumer<Byte>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenChar(Consumer<Character>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenChar(Consumer<Character>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenDouble(Consumer<Double>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenDouble(Consumer<Double>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenFloat(Consumer<Float>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenFloat(Consumer<Float>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenInt(Consumer<Integer>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenInt(Consumer<Integer>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenLong(Consumer<Long>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenLong(Consumer<Long>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenNotFound(Runnable) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Add a listener that will be called if this field is not found inside the current object.
This method return this reader instance in order to use a fluent design :
listenNotFound(Runnable) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenShort(Consumer<Short>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenShort(Consumer<Short>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenString(Consumer<String>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
 
listenString(Consumer<String>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenSubContent(IOConsumer<OdinReader>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Use a consumer to read content of a sub object.
listenSubContent(IOConsumer<OdinReader>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenTo(T) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all the object fields are set with new object instances according to the stream content.
If the object is null this method simply skip the object to read, if you need to get object with null as given object use OdinFieldReader.listenTo(Object, Consumer).
If the field is a primitive, this method skip the object to read.
If the object use a inline or a immutable adapter, this method skip the object to read
listenTo(T, Consumer<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Read value to a given object instance and call listener with it, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all the object fields are set with new object instances according to the stream content.
If the object is null this method do the same as OdinFieldReader.listen(Consumer).
If the field is a primitive, this method call the consumer with his new value.
If the object use a inline or a immutable adapter, this method call the consumer with a new object instance
listenTo(T, AnyType<T>, Consumer<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Read value to a given object instance and call listener with it, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all the object fields are set with new object instances according to the stream content.
If the object is null this method do the same as OdinFieldReader.listenTyped(AnyType, Consumer) and use the given type.
If the field is a primitive, this method call the consumer with his new value.
If the object use a inline or a immutable adapter, this method call the consumer with a new object instance.
listenTo(T, Type, Consumer<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Read value to a given object instance and call listener with it, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all the object fields are set with new object instances according to the stream content.
If the object is null this method do the same as OdinFieldReader.listenTyped(Type, Consumer) and use the given type.
If the field is a primitive, this method call the consumer with his new value.
If the object use a inline or a immutable adapter, this method call the consumer with a new object instance.
listenTo(T) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenTo(T, Consumer<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenTo(T, AnyType<T>, Consumer<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenTo(T, Type, Consumer<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenTyped(AnyType<T>, Consumer<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Read value using the given generic type and call listener with it, if a type definition is present it will be used as object type.
This method take a odin type to be use inside adapter by using ObjectType.getField(String) or all other field getter and TypeField.getType()
listenTyped(Type, Consumer<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldReader
Read value using the given generic type and call listener with it, if a type definition is present it will be used as object type.
Custom type can be created to add generic argument ( can be useful for collection ) using TypeBuilder.
listenTyped(AnyType<T>, Consumer<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
listenTyped(Type, Consumer<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
LocalDateTimeAdapterParameter - Interface in com.newpixelcoffee.odin.internal.defaults
 
LongArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
LongObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
LongObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.LongObjectType
 
LongType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
LongType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.LongType
 

M

manager - Variable in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
MapAdapter - Class in com.newpixelcoffee.odin.internal.collections
 
MapAdapter() - Constructor for class com.newpixelcoffee.odin.internal.collections.MapAdapter
 
mapAdapter - Variable in class com.newpixelcoffee.odin.internal.types.TypeManager
 
MapValuesAdapter - Class in com.newpixelcoffee.odin.internal.collections
 
MapValuesAdapter(String) - Constructor for class com.newpixelcoffee.odin.internal.collections.MapValuesAdapter
 

N

name(String, Class<T>) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
name(String, Class<T>) - Method in class com.newpixelcoffee.odin.Odin
Add an alias for a class, an alias replace the class name by name in stream.
Example: <com.newpixelcoffee.odin.Odin> by <odin>
newEntry() - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
newEntry(String) - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
newEntry() - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
newEntry(String) - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
newEntry() - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
newEntry(String) - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
newEntry() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
newEntry(String) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
newInstance() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
newInstance() - Method in interface com.newpixelcoffee.odin.ObjectType
Create new object instance.
newRow() - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
newRow() - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
newRow() - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
newRow() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
next(boolean) - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
Skip empty char (\s or \t) and get next char.
NodeEntry - Class in com.newpixelcoffee.odin.elements
 

O

ObjectProcessor<T> - Class in com.newpixelcoffee.odin.internal.processor
 
ObjectProcessor(OdinObjectAdapter<T>) - Constructor for class com.newpixelcoffee.odin.internal.processor.ObjectProcessor
 
ObjectType<T> - Interface in com.newpixelcoffee.odin
 
ObjectTypeImpl<T> - Class in com.newpixelcoffee.odin.internal.types
 
ObjectTypeImpl(TypeManager, Class<T>) - Constructor for class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
ObjectTypeImpl(TypeManager, Class<T>, String) - Constructor for class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
Odin - Class in com.newpixelcoffee.odin
Main class to access to Odin.
Odin() - Constructor for class com.newpixelcoffee.odin.Odin
 
OdinAdapter<T> - Interface in com.newpixelcoffee.odin.adapters
The root interface for Odin Adapter, You have to implement OdinInlineAdapter, OdinObjectAdapter or OdinImmutableAdapter to customize the serialization of an object
OdinAdapterException - Exception in com.newpixelcoffee.odin.exceptions
Throw by odin if an error occur during the read or write method of an adapter.
OdinAdapterException(String, String, String, Throwable) - Constructor for exception com.newpixelcoffee.odin.exceptions.OdinAdapterException
 
OdinArray - Class in com.newpixelcoffee.odin.elements
 
OdinArray() - Constructor for class com.newpixelcoffee.odin.elements.OdinArray
 
OdinCustomAdapter - Annotation Type in com.newpixelcoffee.odin.annotations
Define a custom adapter for a field, useful if the field type has another adapter registered in Odin but a field need specific treatment.
If the field value is an implementation of the field type and the implementation type also have an adapter registered in Odin, this custom adapter is forced and still used.
Like standard Odin adapter, this adapter cannot be used with primitive and array type.
OdinElement - Class in com.newpixelcoffee.odin.elements
 
OdinElement() - Constructor for class com.newpixelcoffee.odin.elements.OdinElement
 
OdinExtra - Class in com.newpixelcoffee.odin.elements
 
OdinExtra() - Constructor for class com.newpixelcoffee.odin.elements.OdinExtra
 
OdinField - Annotation Type in com.newpixelcoffee.odin.annotations
Change the name of a field in Odin or add a comments that are write before the field by the default object adapter.
Renamed field is only accessible by her new name in ObjectType, so :
OdinFieldReader - Interface in com.newpixelcoffee.odin.access
 
OdinFieldWriter - Interface in com.newpixelcoffee.odin.access
 
OdinFormatException - Exception in com.newpixelcoffee.odin.exceptions
Thrown by Odin if the reader reach an error in the format or trying to read an object with the wrong type.
OdinFormatException(String) - Constructor for exception com.newpixelcoffee.odin.exceptions.OdinFormatException
 
OdinImmutableAdapter<T> - Interface in com.newpixelcoffee.odin.adapters
This adapter can be used if you need to pass some content to the object constructor when you deserialize it.
OdinInlineAdapter<T,R> - Interface in com.newpixelcoffee.odin.adapters
You can use this adapter to convert an object to another object, like Date to a String
OdinMapAsList - Annotation Type in com.newpixelcoffee.odin.annotations
If a field is a Map and the key of the map is inside values ( in a field ), you can write map as list of these values, so a map :
OdinNode - Class in com.newpixelcoffee.odin.elements
 
OdinNode() - Constructor for class com.newpixelcoffee.odin.elements.OdinNode
 
OdinObject<T> - Class in com.newpixelcoffee.odin.elements
 
OdinObject(T) - Constructor for class com.newpixelcoffee.odin.elements.OdinObject
 
OdinObjectAdapter<T> - Interface in com.newpixelcoffee.odin.adapters
You can use this adapter if you need to customize the serialization and the deserialization of an object
OdinReader - Interface in com.newpixelcoffee.odin
 
OdinReadTo - Annotation Type in com.newpixelcoffee.odin.annotations
Say to the default object adapter to use OdinReader.readTo(Object) instead of OdinReader.readTyped(Type) in order to keep the same object instance.
OdinRowReader - Interface in com.newpixelcoffee.odin.access
 
OdinRowWriter - Interface in com.newpixelcoffee.odin.access
 
OdinTypeException - Exception in com.newpixelcoffee.odin.exceptions
Thrown by odin when a object type can not be initialized.
OdinTypeException(String) - Constructor for exception com.newpixelcoffee.odin.exceptions.OdinTypeException
 
OdinTypeException(String, Throwable) - Constructor for exception com.newpixelcoffee.odin.exceptions.OdinTypeException
 
OdinWriter - Interface in com.newpixelcoffee.odin
 
openObject() - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
openObject() - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
openObject() - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
openObject() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
openSubReader(Object) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
openSubWriter(char, Object) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 

P

parent - Variable in class com.newpixelcoffee.odin.internal.WriterImpl
 
printStackTrace(PrintWriter) - Method in exception com.newpixelcoffee.odin.exceptions.OdinAdapterException
 
printStackTrace(PrintStream) - Method in exception com.newpixelcoffee.odin.exceptions.OdinAdapterException
 
processException(String, String, String, Throwable) - Method in interface com.newpixelcoffee.odin.exceptions.ExceptionStrategy
Define the strategy to use when the Default object adapter reach a RuntimeException.
Processor<T> - Interface in com.newpixelcoffee.odin.internal.processor
 
processor - Variable in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
processorArguments - Variable in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 

R

reachArrayEnd() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
read(OdinReader, ObjectType<? extends T>) - Method in interface com.newpixelcoffee.odin.adapters.OdinImmutableAdapter
 
read(ObjectType<? extends T>, R) - Method in interface com.newpixelcoffee.odin.adapters.OdinInlineAdapter
 
read(OdinReader, ObjectType<? extends T>, T) - Method in interface com.newpixelcoffee.odin.adapters.OdinObjectAdapter
 
read(OdinReader, ObjectType<? extends List<Object>>, List<Object>) - Method in class com.newpixelcoffee.odin.internal.collections.ListAdapter
 
read(OdinReader, ObjectType<? extends Map<Object, Object>>, Map<Object, Object>) - Method in class com.newpixelcoffee.odin.internal.collections.MapAdapter
 
read(OdinReader, ObjectType<? extends Map<Object, Object>>, Map<Object, Object>) - Method in class com.newpixelcoffee.odin.internal.collections.MapValuesAdapter
 
read(OdinReader, ObjectType<? extends Set<Object>>, Set<Object>) - Method in class com.newpixelcoffee.odin.internal.collections.SetAdapter
 
read(ObjectType<? extends Class>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultClassAdapter
 
read(ObjectType<? extends Date>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultDateAdapter
 
read(ObjectType<? extends Enum>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultEnumAdapter
 
read(ObjectType<? extends LocalDate>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateAdapter
 
read(ObjectType<? extends LocalDateTime>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateTimeAdapter
 
read(ObjectType<? extends Locale>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocaleAdapter
 
read(ObjectType<? extends LocalTime>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalTimeAdapter
 
read(OdinReader, ObjectType<?>, Object) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
read(ObjectType<? extends UUID>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultUuidAdapter
 
read(ObjectType<? extends ZonedDateTime>, String) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultZonedDateTimeAdapter
 
read(ReaderImpl, StreamReader, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.ImmutableProcessor
 
read(ReaderImpl, StreamReader, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.InlineProcessor
 
read(ReaderImpl, StreamReader, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.ObjectProcessor
 
read(ReaderImpl, StreamReader, ObjectType<T>, T) - Method in interface com.newpixelcoffee.odin.internal.processor.Processor
 
read(ReaderImpl, StreamReader, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.RuntimeProcessor
 
read() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
read(OdinReader, StreamReader, boolean[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
read(OdinReader, StreamReader, byte[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 
read(OdinReader, StreamReader, char[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
read(OdinReader, StreamReader, double[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 
read(OdinReader, StreamReader, float[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
read(OdinReader, StreamReader, int[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
read(OdinReader, StreamReader, long[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongType
 
read(OdinReader, StreamReader, short[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortObjectType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
read(OdinReader, StreamReader, String[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringArrayType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
read(OdinReader, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
read() - Method in interface com.newpixelcoffee.odin.OdinReader
Read value from the current object without any generic type, if no type definition is present before the value in the stream a simple Class<Object> is used as type, so only null, primitives, Object, Object[] or recursive object can be return.
If a type definition is present the reader will use it
readArray() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readArray() - Method in interface com.newpixelcoffee.odin.OdinReader
Read Odin Array and all extra if present
readBoolean() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readBoolean() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readBoolean() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a boolean
readByte() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readByte() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a byte
readChar() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readChar() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readChar() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a char
readComment() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readDouble() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readDouble() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readDouble() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a double
readEntries(ObjectType<?>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
reader(Reader) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinReader using io Reader
reader(InputStream) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinReader using io InputStream, the given input stream is transformed to reader with UTF-8 charset
reader(Path) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinReader using nio2 Path, the given path is transformed to reader with UTF-8 charset.
reader(File) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinReader using io File, the given file is transformed to reader with UTF-8 charset
ReaderImpl - Class in com.newpixelcoffee.odin.internal
 
ReaderImpl(TypeManager, StreamReader) - Constructor for class com.newpixelcoffee.odin.internal.ReaderImpl
 
readField(String) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readField(String) - Method in interface com.newpixelcoffee.odin.OdinReader
Read field with the given name, this method add in cache the field to read and return an OdinFieldReader in order to set listener.
All listener of an object are called after the adapter process, or in case of main reader, when the close method is called.

Other read methods doesn't known if the next element is a field and try to read it as a value, so the following code does not work :
readFloat() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readFloat() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readFloat() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a float
readInstanceType(String) - Method in class com.newpixelcoffee.odin.internal.types.ClassTypeImpl
 
readInstanceType(String) - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
readInstanceType(String) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
readInstanceType(String) - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
readInt() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readInt() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readInt() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a int
readKey() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readKey() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readKey() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a key
readLong() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readLong() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readLong() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a long
readNextKey() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readNextKey() - Method in interface com.newpixelcoffee.odin.OdinReader
Read all next elements until the next key, this method return null if the object contains no more key
readNode() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readNode() - Method in interface com.newpixelcoffee.odin.OdinReader
Read Odin Node and all extra if present
readNull() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readObject() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readObject() - Method in interface com.newpixelcoffee.odin.OdinReader
Read Odin object and it's extra if present
readRow() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readRow() - Method in interface com.newpixelcoffee.odin.OdinReader
This method return a OdinRowReader in order to read row values.
A row need to have at least one value, you can use OdinRowReader.hasRowNext() to test if there are remaining values in the current row.
readShort() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readShort() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a short
readString() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readString() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readString() - Method in interface com.newpixelcoffee.odin.OdinReader
Read next element as a String
readSubContent(IOConsumer<OdinReader>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readSubContent(IOConsumer<OdinReader>) - Method in interface com.newpixelcoffee.odin.OdinReader
Use a consumer to read content of a sub object.
readTo(T) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readTo(T, AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readTo(T, Type) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readTo(T) - Method in interface com.newpixelcoffee.odin.OdinReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all object fields are set with new object instances according to the stream content.
If the object is null this method do the same as OdinReader.read().
If the field is a primitive, this method return his new value.
If the object use a inline or a immutable adapter, this method return a new object instance
readTo(T, AnyType<T>) - Method in interface com.newpixelcoffee.odin.OdinReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all object fields are set with new object instances according to the stream content.
If the object is null this method do the same as OdinReader.readTyped(AnyType) and use the given type.
If the field is a primitive, this method return his new value.
If the object use a inline or a immutable adapter, this method return a new object instance.
readTo(T, Type) - Method in interface com.newpixelcoffee.odin.OdinReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all object fields are set with new object instances according to the stream content.
If the object is null this method do the same as OdinReader.readTyped(Type) and use the given type.
If the field is a primitive, this method return his new value.
If the object use a inline or a immutable adapter, this method return a new object instance.
readType() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
readTyped(AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readTyped(Type) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
readTyped(AnyType<T>) - Method in interface com.newpixelcoffee.odin.OdinReader
Read value using given generic type, if a type definition is present in the input stream it will be used as object type.
This method take a odin type to be use inside adapter by using ObjectType.getField(String) or all other field getter and TypeField.getType()
readTyped(Type) - Method in interface com.newpixelcoffee.odin.OdinReader
Read value using given generic type, if a type definition is present in the input stream it will be used as object type.
Custom type can be created to add generic argument ( can be useful for collection ) using TypeBuilder.
readValue() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
 
register(OdinAdapter<T>) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
register(String, OdinAdapter<T>) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
register(OdinAdapter<T>) - Method in class com.newpixelcoffee.odin.Odin
Register an adapter in order to modify the writer and reader behavior, an adapter can be defined for any object except primitives and arrays.
Three type of adapter is available :
- OdinObjectAdapter is the standard adapter, in write and read process you receive the object type and object instance, you say to odin what to do with that, for example all object use by default an OdinObjectAdapter, for each fields this adapter call writeTyped and readTyped.
- OdinImmutableAdapter is used to read immutable object needing to get content passed to constructor, this adapter does not have recursivity check.
- OdinInlineAdapter is used to transform an object to another object like primitive, for example this adapter is used to transform Class, Enum, UUID or Date to a simple String, this adapter does not have recursive check.
register(String, OdinAdapter<T>) - Method in class com.newpixelcoffee.odin.Odin
Register an adapter and a alias in order to modify the writer and reader behavior, an adapter can be defined for any object except primitives and arrays.
Three type of adapter is available :
- OdinObjectAdapter is the standard adapter, in write and read process you receive the object type and object instance, you say to odin what to do with that, for example all object use by default an OdinObjectAdapter, for each fields this adapter call writeTyped and readTyped.
- OdinImmutableAdapter is used to read immutable object who need content value to be passed in constructor, this adapter does not have recursivity check.
- OdinInlineAdapter is used to transform an object to another object like primitive, for example this adapter is used to transform Class, Enum, UUID or Date to a simple String.
registerAdapterType() - Method in class com.newpixelcoffee.odin.internal.types.ClassTypeImpl
 
registerAdapterType() - Method in class com.newpixelcoffee.odin.internal.types.GenericTypeImpl
 
registerAdapterType() - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
registerAsList(String, Class<T>) - Method in class com.newpixelcoffee.odin.Odin
Register a class in order to process it as a list, by default only ArrayList, LinkedList and Vector use the list adapter.
registerAsMap(String, Class<T>) - Method in class com.newpixelcoffee.odin.Odin
Register a class in order to process it as a map, by default only HashMap, LinkedHashMap, TreeMap and EnumMap use the map adapter.
registerAsSet(String, Class<T>) - Method in class com.newpixelcoffee.odin.Odin
Register a class in order to process it as a set, by default only HashSet, LinkedHashSet, TreeSet and EnumSet use the set adapter.
registerImplementation(String, Class<T>, OdinAdapter<?>) - Method in class com.newpixelcoffee.odin.internal.types.TypeManager
 
remove(T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Remove the OdinObject containing the given value.
remove(String) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Remove the OdinElement defined with this name.
removeAll(Collection<?>) - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
removeAll(Collection<String>) - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
removeFrom(int) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Remove the OdinElement present at the given index.
removeFrom(int) - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
removeFrom(int) - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
run(Consumer<OdinArray>) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Run a consumer with this array as parameter.
run(Consumer<OdinNode>) - Method in class com.newpixelcoffee.odin.elements.OdinNode
Run a consumer with this node as parameter.
run(Consumer<OdinObject<T>>) - Method in class com.newpixelcoffee.odin.elements.OdinObject
Run a consumer with this object as parameter.
RuntimeProcessor<T> - Class in com.newpixelcoffee.odin.internal.processor
 
RuntimeProcessor() - Constructor for class com.newpixelcoffee.odin.internal.processor.RuntimeProcessor
 

S

set(int, T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Replace the element present at specified position by a new OdinObject with the given value.
If index is out of bounds, this method call OdinArray.add(Object).
set(int, T) - Method in class com.newpixelcoffee.odin.elements.OdinArray
Replace the element present at specified position by the given element.
If index is out of bounds, this method call OdinArray.addElement(OdinElement).
SetAdapter - Class in com.newpixelcoffee.odin.internal.collections
 
SetAdapter() - Constructor for class com.newpixelcoffee.odin.internal.collections.SetAdapter
 
setAdapter - Variable in class com.newpixelcoffee.odin.internal.types.TypeManager
 
setContentExtra(OdinExtra) - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
Set the content extra of this element.
Content extra contains comments and empty lines that appear after the last child of this element in odn.
If this element has no children, this content extra contains all comments and empty lines.
setDefaultDateFormat(DateFormat) - Method in class com.newpixelcoffee.odin.Odin
Change the default date format located in odin adapter, by default, date use 'yyyy-MM-dd HH:mm:ss'.
setDefaultDateFormat(Class<? extends Temporal>, DateTimeFormatter) - Method in class com.newpixelcoffee.odin.Odin
Change the default local date/time format located in odin adapter, list of default java time format :
- LocalDate : yyyy-MM-dd
- LocalDateTime : yyyy-MM-dd HH:mm:ss [NANO_OF_SECOND]
- LocalTime : HH:mm:ss [NANO_OF_SECOND]
- ZonedDateTime : yyyy-MM-dd HH:mm:ss [NANO_OF_SECOND] [ZoneOrZoneID]
'[]' refers to optional part
setExtra(OdinExtra) - Method in class com.newpixelcoffee.odin.elements.OdinElement
Set the extra of this element.
Extra contains comments and empty lines that appear before this element if the odn output.
setFieldFilter(Predicate<Field>) - Method in class com.newpixelcoffee.odin.Odin
Change the class fields filter to keep only wanted fields.
setFieldGetExceptionStrategy(ExceptionStrategy) - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Set the strategy to use when a field value can not be read and throw an IllegalAccessException.
setFieldGetExceptionStrategy(ExceptionStrategy) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
setName(String) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
setProcessor(Processor<T>) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
setReaderBufferSize(int) - Method in class com.newpixelcoffee.odin.Odin
Set buffer size for futurely created readers.
setReaderExceptionStrategy(ExceptionStrategy) - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Set the strategy to use when a RuntimeException occur while reading a field value.
setReaderExceptionStrategy(ExceptionStrategy) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
setSkippingNull(boolean) - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Set if the default object adapter write entries containing null as value
setSkippingNull(boolean) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
setWriterExceptionStrategy(ExceptionStrategy) - Method in interface com.newpixelcoffee.odin.adapters.DefaultAdapterOption
Set the strategy to use when a RuntimeException occur while writing a field value.
setWriterExceptionStrategy(ExceptionStrategy) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
ShortArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
ShortObjectType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
ShortObjectType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.ShortObjectType
 
ShortType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
ShortType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
ShortWriterImpl - Class in com.newpixelcoffee.odin.internal
 
ShortWriterImpl(TypeManager, StreamWriter) - Constructor for class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
size - Variable in class com.newpixelcoffee.odin.elements.AbstractContainer
 
size() - Method in class com.newpixelcoffee.odin.elements.AbstractContainer
 
skip() - Method in class com.newpixelcoffee.odin.internal.streams.StreamReader
Skip all empty char (\s, \t, \r and \n) and get next char.
stream - Variable in class com.newpixelcoffee.odin.internal.WriterImpl
 
StreamReader - Class in com.newpixelcoffee.odin.internal.streams
 
StreamReader(Reader) - Constructor for class com.newpixelcoffee.odin.internal.streams.StreamReader
 
StreamReader(Reader, int) - Constructor for class com.newpixelcoffee.odin.internal.streams.StreamReader
 
StreamWriter - Class in com.newpixelcoffee.odin.internal.streams
 
StreamWriter(Writer) - Constructor for class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
StringArrayType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
StringType - Class in com.newpixelcoffee.odin.internal.types.primitives
 
StringType() - Constructor for class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
subRead(ReaderImpl, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
subRead(ReaderImpl, StreamReader, R) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
subWrite(WriterImpl, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
subWrite(WriterImpl, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 

T

take() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read value from the current object without any generic type, if no type definition is present before the value in the stream a simple Class<Object> is used as type, so only null, primitives, Object, Object[] or recursive object can be return.
If a type definition is present the reader will use it
take() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeBoolean() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a boolean
takeBoolean() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeByte() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a byte
takeByte() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeChar() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a char
takeChar() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeDouble() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a double
takeDouble() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeFloat() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a float
takeFloat() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeInt() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a int
takeInt() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeLong() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a long
takeLong() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeShort() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a short
takeShort() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeString() - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read next element as a String
takeString() - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeSubContent(IOConsumer<OdinReader>) - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Use a consumer to read content of a sub object.
takeSubContent(IOConsumer<OdinReader>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeTo(T) - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all object fields are set with a new object instances according to the stream content.
If the object is null this method do the same as OdinRowReader.take().
If the field is a primitive, this method return his new value.
If the object use a inline or a immutable adapter, this method return a new object instance
takeTo(T, AnyType<T>) - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all object fields are set with a new object instances according to the stream content.
If the object is null this method do the same as OdinRowReader.takeTyped(AnyType) and use the given type.
If the field is a primitive, this method return his new value.
If the object use a inline or a immutable adapter, this method return a new object instance.
takeTo(T, Type) - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read value to a given object instance, if a type definition is present in the input stream it will be skip to use the given instance type.
This method is not recursive, so all object fields are set with a new object instances according to the stream content.
If the object is null this method do the same as OdinRowReader.takeTyped(Type) and use the given type.
If the field is a primitive, this method return his new value.
If the object use a inline or a immutable adapter, this method return a new object instance.
takeTo(T) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeTo(T, AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeTo(T, Type) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeTyped(AnyType<T>) - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read value using given generic type, if a type definition is present it will be used as object type.
This method take a odin type to be use inside adapter by using ObjectType.getField(String) or all other field getter and TypeField.getType()
takeTyped(Type) - Method in interface com.newpixelcoffee.odin.access.OdinRowReader
Read value using given generic type, if a type definition is present it will be used as object type.
Custom type can be created to add generic argument ( can be useful for collection ) using TypeBuilder.
takeTyped(AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
takeTyped(Type) - Method in class com.newpixelcoffee.odin.internal.ReaderImpl
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
toArray() - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
toOdn(Object) - Method in class com.newpixelcoffee.odin.Odin
Transform object to an odn string using OdinWriter.write(Object)
toOdn(Object, Type) - Method in class com.newpixelcoffee.odin.Odin
Transform object to an odn string using OdinWriter.writeTyped(Object, Type)
toString() - Method in class com.newpixelcoffee.odin.elements.OdinArray
 
toString() - Method in class com.newpixelcoffee.odin.elements.OdinNode
 
toString() - Method in class com.newpixelcoffee.odin.elements.OdinObject
 
type - Variable in class com.newpixelcoffee.odin.TypeBuilder
 
TypeBuilder<T> - Class in com.newpixelcoffee.odin
Type builder.
Use anonymous inner class with generic parameter to define type to read.
For example new TypeBuilder<List<String>>() {}; to get List<String>.
TypeBuilder() - Constructor for class com.newpixelcoffee.odin.TypeBuilder
 
TypeField<T> - Class in com.newpixelcoffee.odin.internal.types
 
TypeManager - Class in com.newpixelcoffee.odin.internal.types
 
TypeManager() - Constructor for class com.newpixelcoffee.odin.internal.types.TypeManager
 
types - Variable in class com.newpixelcoffee.odin.internal.WriterImpl
 

U

UNKNOWN_TYPE - Variable in class com.newpixelcoffee.odin.internal.types.TypeManager
 
UnknownTypeImpl - Class in com.newpixelcoffee.odin.internal.types
 

V

value - Variable in class com.newpixelcoffee.odin.elements.OdinObject
 
valueOf(String) - Static method in enum com.newpixelcoffee.odin.exceptions.ExceptionsStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.newpixelcoffee.odin.exceptions.ExceptionsStrategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

with(Object) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write object to the current field without a generic type.
with(Object) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withBoolean(boolean) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a boolean to the current field
withBoolean(boolean) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withByte(byte) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a byte to the current field
withByte(byte) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withChar(char) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a char to the current field
withChar(char) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withDouble(double) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a double to the current field
withDouble(double) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withFloat(float) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a float to the current field
withFloat(float) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withInt(int) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a int to the current field
withInt(int) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withLong(long) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a long to the current field
withLong(long) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withShort(short) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a short to the current field
withShort(short) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withString(String) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write a String to the current field
withString(String) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withSubContent(IOConsumer<OdinWriter>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Use a consumer to write content to a sub object.
withSubContent(IOConsumer<OdinWriter>) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withTyped(T, AnyType<T>) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write an object to the current field, if object class is not the same than type class, like implementation, the type name is added before the object.
This method take a odin type to be use inside adapter by using ObjectType.getField(String) or all other field getter and TypeField.getType()
withTyped(Object, Type) - Method in interface com.newpixelcoffee.odin.access.OdinFieldWriter
Write an object to the current field, odin get the AnyType associated to the given type, if the object class is not the same than type class, like implementation, the type name is added before the object.
Custom type can be created to add generic argument ( can be useful for collection ) using TypeBuilder.
withTyped(T, AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
withTyped(Object, Type) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
write(OdinWriter, ObjectType<? extends T>, T) - Method in interface com.newpixelcoffee.odin.adapters.OdinImmutableAdapter
 
write(ObjectType<? extends T>, T) - Method in interface com.newpixelcoffee.odin.adapters.OdinInlineAdapter
 
write(OdinWriter, ObjectType<? extends T>, T) - Method in interface com.newpixelcoffee.odin.adapters.OdinObjectAdapter
 
write(OdinWriter, ObjectType<? extends List<Object>>, List<Object>) - Method in class com.newpixelcoffee.odin.internal.collections.ListAdapter
 
write(OdinWriter, ObjectType<? extends Map<Object, Object>>, Map<Object, Object>) - Method in class com.newpixelcoffee.odin.internal.collections.MapAdapter
 
write(OdinWriter, ObjectType<? extends Map<Object, Object>>, Map<Object, Object>) - Method in class com.newpixelcoffee.odin.internal.collections.MapValuesAdapter
 
write(OdinWriter, ObjectType<? extends Set<Object>>, Set<Object>) - Method in class com.newpixelcoffee.odin.internal.collections.SetAdapter
 
write(ObjectType<? extends Class>, Class) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultClassAdapter
 
write(ObjectType<? extends Date>, Date) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultDateAdapter
 
write(ObjectType<? extends Enum>, Enum) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultEnumAdapter
 
write(ObjectType<? extends LocalDate>, LocalDate) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateAdapter
 
write(ObjectType<? extends LocalDateTime>, LocalDateTime) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalDateTimeAdapter
 
write(ObjectType<? extends Locale>, Locale) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocaleAdapter
 
write(ObjectType<? extends LocalTime>, LocalTime) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultLocalTimeAdapter
 
write(OdinWriter, ObjectType<?>, Object) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultObjectAdapter
 
write(ObjectType<? extends UUID>, UUID) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultUuidAdapter
 
write(ObjectType<? extends ZonedDateTime>, ZonedDateTime) - Method in class com.newpixelcoffee.odin.internal.defaults.DefaultZonedDateTimeAdapter
 
write(WriterImpl, StreamWriter, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.ImmutableProcessor
 
write(WriterImpl, StreamWriter, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.InlineProcessor
 
write(WriterImpl, StreamWriter, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.ObjectProcessor
 
write(WriterImpl, StreamWriter, ObjectType<T>, T) - Method in interface com.newpixelcoffee.odin.internal.processor.Processor
 
write(WriterImpl, StreamWriter, ObjectType<T>, T) - Method in class com.newpixelcoffee.odin.internal.processor.RuntimeProcessor
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
write(OdinWriter, StreamWriter, boolean[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.BooleanType
 
write(OdinWriter, StreamWriter, byte[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ByteType
 
write(OdinWriter, StreamWriter, char[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.CharType
 
write(OdinWriter, StreamWriter, double[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.DoubleType
 
write(OdinWriter, StreamWriter, float[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.FloatType
 
write(OdinWriter, StreamWriter, int[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.IntType
 
write(OdinWriter, StreamWriter, long[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.LongType
 
write(OdinWriter, StreamWriter, short[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortObjectType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.ShortType
 
write(OdinWriter, StreamWriter, String[]) - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringArrayType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.primitives.StringType
 
write(OdinWriter, StreamWriter, R) - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
write(Object) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
write(Object) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write an object, if object is not a primitive or a Object, the type definition is added before the object.
writeArray(OdinArray) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeArray(OdinArray) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write Odin array, if writer is indented all odin OdinExtra are write before elements
writeBoolean(boolean) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeBoolean(boolean) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeBoolean(boolean) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a boolean
writeByte(byte) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeByte(byte) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a byte
writeChar(char) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeChar(char) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeChar(char) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a char
writeComment(String) - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
writeComment(String[]) - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
writeComment(List<String>) - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
writeComment(String) - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
writeComment(String[]) - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
writeComment(List<String>) - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
writeComment(String) - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
writeComment(String[]) - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
writeComment(List<String>) - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
writeComment(String) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeComment(String) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a comment line, if this writer use compressed output, this method do nothing.
writeComment(String[]) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write multiple comment lines, if this writer use compressed output, this method do nothing.
writeComment(List<String>) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write multiple comment lines, if this writer use compressed output, this method do nothing.
writeDouble(double) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeDouble(double) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeDouble(double) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a double
writeExtra(OdinExtra) - Method in class com.newpixelcoffee.odin.internal.IndentWriterImpl
 
writeExtra(OdinExtra) - Method in class com.newpixelcoffee.odin.internal.InlineWriterImpl
 
writeExtra(OdinExtra) - Method in class com.newpixelcoffee.odin.internal.ShortWriterImpl
 
writeExtra(OdinExtra) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeField(String) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeField(String) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a new field with the given field name
writeFloat(float) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeFloat(float) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeFloat(float) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a float
writeInt(int) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeInt(int) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeInt(int) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a int
writeKey(String) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeLong(long) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeLong(long) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeLong(long) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a long
writeNode(OdinNode) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeNode(OdinNode) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write Odin node, if writer is indented all odin OdinExtra are write before elements
writeNull() - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeObject(OdinObject) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeObject(OdinObject) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write Odin object, if writer is indented odin OdinExtra was write before this object
writer(Writer) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinWriter using io Writer
writer(OutputStream) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinWriter using io OutputStream, the given output stream is transformed to writer with UTF-8 charset
writer(Path) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinWriter using nio2 Path, the given path is transformed to writer with UTF-8 charset.
If the file does not exist, it will be created
writer(File) - Method in class com.newpixelcoffee.odin.Odin
Create a new OdinWriter using io File, the given file is transformed to writer with UTF-8 charset.
If the file does not exist, it will be created
WriterImpl - Class in com.newpixelcoffee.odin.internal
 
WriterImpl(WriterImpl, TypeManager, StreamWriter) - Constructor for class com.newpixelcoffee.odin.internal.WriterImpl
 
writeRow() - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeRow() - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a new row, while there are no new call to this method, all value added using OdinRowWriter is write to same row
writeShort(short) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeShort(short) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a short
writeString(String) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeString(String) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeString(String) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write a String
writeSubContent(IOConsumer<OdinWriter>) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeSubContent(IOConsumer<OdinWriter>) - Method in interface com.newpixelcoffee.odin.OdinWriter
Use a consumer to write content to a sub object.
writeType(String) - Method in class com.newpixelcoffee.odin.internal.streams.StreamWriter
 
writeType(StreamWriter, boolean) - Method in class com.newpixelcoffee.odin.internal.types.AnyTypeImpl
 
writeType(StreamWriter, boolean) - Method in class com.newpixelcoffee.odin.internal.types.ArrayTypeImpl
 
writeType(StreamWriter, boolean) - Method in class com.newpixelcoffee.odin.internal.types.ObjectTypeImpl
 
writeType(StreamWriter, boolean) - Method in class com.newpixelcoffee.odin.internal.types.UnknownTypeImpl
 
writeTyped(T, AnyType<T>) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeTyped(Object, Type) - Method in class com.newpixelcoffee.odin.internal.WriterImpl
 
writeTyped(T, AnyType<T>) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write an object, if the object class is not the same than type class, like implementation, the type definition is added before the object.
This method take a odin type to be use inside adapter by using ObjectType.getField(String) or all other field getter and TypeField.getType()
writeTyped(Object, Type) - Method in interface com.newpixelcoffee.odin.OdinWriter
Write an object, odin get the AnyType associated to the given type, if the object class is not the same than type class, like implementation, the type definition is added before the object.
Custom type can be created to add generic argument ( can be useful for collection ) using TypeBuilder.
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links