Uses of Class
com.cedarsoftware.io.ReadOptionsBuilder
Packages that use ReadOptionsBuilder
-
Uses of ReadOptionsBuilder in com.cedarsoftware.io
Methods in com.cedarsoftware.io that return ReadOptionsBuilderModifier and TypeMethodDescriptionReadOptionsBuilder.addClassFactory(Class<?> clazz, ClassFactory factory) Associate a ClassFactory to a Class that needs help being constructed and read in.ReadOptionsBuilder.addConverterOverride(Class<?> source, Class<?> target, com.cedarsoftware.util.convert.Convert<?> conversionFunction) ReadOptionsBuilder.addCustomOption(String key, Object value) Add a custom option, which may be useful when writing custom readers.ReadOptionsBuilder.addCustomReaderClass(Class<T> clazz, JsonClassReader<? super T> customReader) ReadOptionsBuilder.addFieldFilter(FieldFilter filter) Add a class to the field filter list - allows adding more field filter typesReadOptionsBuilder.addInjectorFactory(InjectorFactory factory) Add a class to the injector factory list - allows to add injector to the classReadOptionsBuilder.addNonReferenceableClass(Class<?> clazz) ReadOptionsBuilder.addNotCustomReaderClass(Class<?> notCustomClass) Add a class to the not-customized list - the list of classes that you do not want to be picked up by a custom reader (that could happen through inheritance).ReadOptionsBuilder.aliasTypeName(Class<?> type, String alias) ReadOptionsBuilder.aliasTypeName(String typeName, String alias) ReadOptionsBuilder.aliasTypeNames(Map<String, String> aliasTypeNames) ReadOptionsBuilder.allowNanAndInfinity(boolean allowNanAndInfinity) ReadOptionsBuilder.classLoader(ClassLoader classLoader) ReadOptionsBuilder.closeStream(boolean closeStream) ReadOptionsBuilder.coerceClass(String sourceClassName, Class<?> destClass) Coerce a class from one type (named in the JSON) to another type.ReadOptionsBuilder.collectionLoadFactor(float collectionLoadFactor) ReadOptionsBuilder.defaultCollectionCapacity(int defaultCollectionCapacity) ReadOptionsBuilder.failOnUnknownType(boolean fail) ReadOptionsBuilder.floatPointBigDecimal()Set Floating Point types to be returned as BigDecimals.ReadOptionsBuilder.floatPointBoth()Set Floating Point types to be returned as either Doubles or BigDecimals, depending on precision required to hold the number sourced from JSON.ReadOptionsBuilder.floatPointDouble()Set Floating Point types to be returned as Doubles.ReadOptionsBuilder.integerTypeBigInteger()Set Integer Types to always be returned as BigIntegers, regardless of size.ReadOptionsBuilder.integerTypeBoth()Set Integer Types to be returned as either Longs or BigIntegers, depending on precision required to hold the number sourced from JSON.ReadOptionsBuilder.integerTypeLong()Set Integer Types to be returned as Longs.ReadOptionsBuilder.linearSearchThreshold(int linearSearchThreshold) ReadOptionsBuilder.lruSize(int lruSize) ReadOptionsBuilder.maxAllowedLength(int maxAllowedLength) ReadOptionsBuilder.maxDepth(int maxDepth) ReadOptionsBuilder.maxFileContentSize(int maxFileContentSize) ReadOptionsBuilder.maxIdValue(long maxIdValue) ReadOptionsBuilder.maxLineCount(int maxLineCount) ReadOptionsBuilder.maxLineLength(int maxLineLength) ReadOptionsBuilder.maxMapsToRehash(int maxMapsToRehash) ReadOptionsBuilder.maxMissingFields(int maxMissingFields) ReadOptionsBuilder.maxObjectReferences(int maxObjectReferences) ReadOptionsBuilder.maxReferenceChainDepth(int maxReferenceChainDepth) ReadOptionsBuilder.maxStackDepth(int maxStackDepth) ReadOptionsBuilder.maxTypeResolutionCacheSize(int maxTypeResolutionCacheSize) ReadOptionsBuilder.maxUnresolvedReferences(int maxUnresolvedReferences) ReadOptionsBuilder.minCollectionCapacity(int minCollectionCapacity) ReadOptionsBuilder.missingFieldHandler(MissingFieldHandler missingFieldHandler) ReadOptionsBuilder.removeAliasTypeNameMatching(String typeNamePattern) Remove alias entries from this ReadOptionsBuilder instance where the Java fully qualified string class name matches the passed in wildcard pattern.ReadOptionsBuilder.replaceClassFactories(Map<? extends Class<?>, ? extends ClassFactory> factories) Associate multiple ClassFactory instances to Classes that needs help being constructed and read in.ReadOptionsBuilder.replaceCustomReaderClasses(Map<? extends Class<?>, ? extends JsonClassReader> customReaderClasses) ReadOptionsBuilder.replaceNotCustomReaderClasses(Collection<? extends Class<?>> notCustomClasses) ReadOptionsBuilder.returnAsJavaObjects()Return as JAVA_OBJECT's the returned value will be of the class type passed into JsonIo.toJava(json, rootClass).ReadOptionsBuilder.returnAsJsonObjects()Set to return as JSON_OBJECTS's (faster, useful for large, more simple object data sets).ReadOptionsBuilder.returnAsNativeJsonObjects()Deprecated.ReadOptionsBuilder.setCharset(Charset charset) ReadOptionsBuilder.setFalseCharacter(Character ch) ReadOptionsBuilder.setTrueCharacter(Character ch) ReadOptionsBuilder.strictJson()Enable strict JSON parsing mode (RFC 8259 compliance only).ReadOptionsBuilder.stringBufferSize(int stringBufferSize) ReadOptionsBuilder.unknownTypeClass(Class<?> c) Set a class to use when the JSON reader cannot instantiate a class.ReadOptionsBuilder.useUnsafe(boolean useUnsafe)
returnAsJsonObjects()instead.