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

A

add(String, String) - Method in class org.nanoj.util.http.HttpClientRequestBody
 
addError(String, String) - Method in class org.nanoj.util.beanmapper.PropertyErrorCollector
 
addError(String, int) - Method in class org.nanoj.util.beanmapper.PropertyErrorCollector
 
Attribute - Class in org.nanoj.util.tson
 
Attribute() - Constructor for class org.nanoj.util.tson.Attribute
 

B

BeanGetter - Class in org.nanoj.util.introspection
 
BeanGetter(Method, String) - Constructor for class org.nanoj.util.introspection.BeanGetter
 
BeanIntrospector - Class in org.nanoj.util.introspection
 
BeanIntrospector() - Constructor for class org.nanoj.util.introspection.BeanIntrospector
 
BeanMapper - Class in org.nanoj.util.beanmapper
 
BeanMapper() - Constructor for class org.nanoj.util.beanmapper.BeanMapper
 
BeanMapper(PropertyErrorCollector) - Constructor for class org.nanoj.util.beanmapper.BeanMapper
 
BeanSetter - Class in org.nanoj.util.introspection
 
BeanSetter(Method, String) - Constructor for class org.nanoj.util.introspection.BeanSetter
 
beanToMap(Object, Properties) - Method in class org.nanoj.util.beanmapper.BeanMapper
 
beanToMap(Object, Map<String, String>) - Method in class org.nanoj.util.beanmapper.BeanMapper
 
BeanTranslator - Interface in org.nanoj.util.beanwriter
 
BeanWriter - Class in org.nanoj.util.beanwriter
 
BeanWriter(Writer, BeanTranslator) - Constructor for class org.nanoj.util.beanwriter.BeanWriter
Constructor

C

close(Writer) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
close() - Method in class org.nanoj.util.beanwriter.BeanWriter
Invokes the close method of the writer ( ie : with an XML writer it closes the root tag ) then flushes and closes the output flow.
close(Writer) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
close(Writer) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
closeArray(Writer, Object[], String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
closeArray(Writer, Object[], String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
closeArray(Writer, Object[], String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
closeCollection(Writer, Collection<?>, String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
closeCollection(Writer, Collection<?>, String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
closeCollection(Writer, Collection<?>, String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
closeObject(Writer, Object, String, int) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
closeObject(Writer, Object, String, int) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
closeObject(Writer, Object, String, int) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
closeSubObjects(Writer, Object, String) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
closeSubObjects(Writer, Object, String) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
closeSubObjects(Writer, Object, String) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
commentLine(int, String) - Method in class org.nanoj.util.file.GenericFileParser
Called for each comment line
configFollowRedirects(boolean) - Static method in class org.nanoj.util.http.HttpClient
Global "Follow Redirects" configuration
configProxy(String, String) - Static method in class org.nanoj.util.http.HttpClient
Global proxy configuration
configTrustStore(String, String) - Static method in class org.nanoj.util.http.HttpClient
 
ConsoleLoggerProvider - Class in org.nanoj.util
 
ConsoleLoggerProvider() - Constructor for class org.nanoj.util.ConsoleLoggerProvider
 
createTable(String, Class<?>, Class<?>) - Method in class org.nanoj.util.tinydb.TinyDatabase
Creates a new table in the database
CSVFileParser - Class in org.nanoj.util.file
 
CSVFileParser(char) - Constructor for class org.nanoj.util.file.CSVFileParser
Constructor
CSVFileParser(char, String) - Constructor for class org.nanoj.util.file.CSVFileParser
Constructor
CSVFileParser(String) - Constructor for class org.nanoj.util.file.CSVFileParser
Constructor
CSVFileParser(String, String) - Constructor for class org.nanoj.util.file.CSVFileParser
Constructor

D

dataLine(int, String, String[]) - Method in class org.nanoj.util.file.CSVFileParser
Called for each data line
dataLine(int, String) - Method in class org.nanoj.util.file.CSVFileParser
 
dataLine(int, String) - Method in class org.nanoj.util.file.GenericFileParser
Specific processing for each data line
dateISO(Date) - Static method in class org.nanoj.util.DateUtil
Returns the given date as an ISO date string ( "YYYY-MM-DD" )
dateTimeISO(Date) - Static method in class org.nanoj.util.DateUtil
Returns the given date as an ISO date and time string ( "YYYY-MM-DD HH:MM:SS" )
DateUtil - Class in org.nanoj.util
Utility class for DATE operations ( set of static methods )
delete(String) - Method in class org.nanoj.util.http.HttpClient
 
delete(URL) - Method in class org.nanoj.util.http.HttpClient
 
delete(Class<?>, String) - Method in class org.nanoj.util.serial.RecordSerializer
Deletes the object instance file corresponding to the given key
deleteRecord(Object) - Method in class org.nanoj.util.tinydb.TinyTable
Deletes the record associated with the given key
If there's no record for this key nothing is deleted (it's not an error)
DO_NOT_STORE_RESPONSE_BODY - Static variable in class org.nanoj.util.http.HttpClientResponse
 
dropTable(String) - Method in class org.nanoj.util.tinydb.TinyDatabase
 

E

end() - Method in class org.nanoj.util.file.GenericFileParser
Called when the parsing ends
errorsCount() - Method in class org.nanoj.util.beanmapper.PropertyErrorCollector
Returns the number of errors

F

FileSerializer - Class in org.nanoj.util.serial
File serializer
FileSerializer(String) - Constructor for class org.nanoj.util.serial.FileSerializer
Constructor
findRecord(Object) - Method in class org.nanoj.util.tinydb.TinyTable
Finds the record associated with the given key
firstCharLowerCase(String) - Static method in class org.nanoj.util.StrUtil
Returns the given string starting by an Lower Case
firstCharUpperCase(String) - Static method in class org.nanoj.util.StrUtil
Returns the given string starting by an Upper Case
format(int, int, int, String) - Static method in class org.nanoj.util.DateUtil
Format the given day, month and year
format(int, int, int) - Static method in class org.nanoj.util.DateUtil
Format the given day, month and year ( in ISO format )
format(Date, String) - Static method in class org.nanoj.util.DateUtil
Format the given date using the given format

G

GenericFileParser - Class in org.nanoj.util.file
 
GenericFileParser() - Constructor for class org.nanoj.util.file.GenericFileParser
Constructor
GenericFileParser(String) - Constructor for class org.nanoj.util.file.GenericFileParser
Constructor
get(String) - Method in class org.nanoj.util.http.HttpClient
 
get(URL) - Method in class org.nanoj.util.http.HttpClient
 
getAsString() - Method in class org.nanoj.util.http.HttpClientRequestBody
 
getBodyContent() - Method in class org.nanoj.util.http.HttpClientResponse
Returns the content of the response body
getCommentString() - Method in class org.nanoj.util.file.GenericFileParser
Returns the comment string
getConfigFollowRedirects() - Static method in class org.nanoj.util.http.HttpClient
Returns the global "Follow Redirects" configuration
getContentEncoding() - Method in class org.nanoj.util.http.HttpClientResponse
Returns the value of the "content-encoding" header field.
getContentLength() - Method in class org.nanoj.util.http.HttpClientResponse
Returns the value of the "content-length" header field.
getContentType() - Method in class org.nanoj.util.http.HttpClientResponse
Returns the value of the "content-type" header field.
getCurrentDatabase() - Static method in class org.nanoj.util.tinydb.TinyDatabase
Returns the current database
getDatabaseFolder() - Method in class org.nanoj.util.tinydb.TinyDatabase
Returns the database filesystem folder (where the tables are saved as files)
getDay(Date) - Static method in class org.nanoj.util.DateUtil
Returns the day of the month for the given date
getErrors() - Method in class org.nanoj.util.beanmapper.BeanMapper
 
getErrors() - Method in class org.nanoj.util.beanmapper.PropertyErrorCollector
Returns the list of errors (or null if no error )
getFieldByName(Class<?>, String) - Static method in class org.nanoj.util.introspection.BeanIntrospector
Returns the field identified by the given name
getFollowRedirects() - Method in class org.nanoj.util.http.HttpClient
 
getGetters(Object) - Static method in class org.nanoj.util.introspection.BeanIntrospector
Returns all the getters for the given bean class ( methods starting with "get" except "getClass" )
getHeader(String) - Method in class org.nanoj.util.http.HttpClientResponse
Returns an unmodifiable List of Strings that represents the corresponding header field values.
getHeaderMap() - Method in class org.nanoj.util.http.HttpClientResponse
Returns all the header fields ( including the http status ) stored in an unmodifiable Map
The Map keys are Strings that represent the response-header field names.
getKeyClass() - Method in class org.nanoj.util.tinydb.TinyTable
Returns the class of the keys for this table
getLogger(Class<?>) - Static method in class org.nanoj.util.ConsoleLoggerProvider
Returns a logger for the given class with the default "INFO" level
getLogger(Class<?>, Level) - Static method in class org.nanoj.util.ConsoleLoggerProvider
Returns a logger for the given class with the given level
getMethod() - Method in class org.nanoj.util.introspection.BeanGetter
 
getMethod() - Method in class org.nanoj.util.introspection.BeanSetter
 
getMethods(Object) - Static method in class org.nanoj.util.introspection.BeanIntrospector
Returns all the methods of the given bean class
getMonth(Date) - Static method in class org.nanoj.util.DateUtil
Returns the month of the given date
getPropertyName() - Method in class org.nanoj.util.introspection.BeanGetter
 
getPropertyName() - Method in class org.nanoj.util.introspection.BeanSetter
 
getPropertyType() - Method in class org.nanoj.util.introspection.BeanSetter
 
getRecordClass() - Method in class org.nanoj.util.tinydb.TinyTable
Returns the class of the records stored in this table
getResult() - Method in class org.nanoj.util.file.GenericFileParser
Returns the result of the file parsing
getReturnType() - Method in class org.nanoj.util.introspection.BeanGetter
 
getSeparatorChar() - Method in class org.nanoj.util.file.CSVFileParser
Returns the separator character
getSetters(Object) - Static method in class org.nanoj.util.introspection.BeanIntrospector
Returns all the setters for the given bean class ( methods starting with "set" )
getSqlDate(int, int, int) - Static method in class org.nanoj.util.DateUtil
Returns a java.sql.Date instance for the given day, month and year
getStatusCode() - Method in class org.nanoj.util.http.HttpClientResponse
Returns the status code from an HTTP response message : 200 ( OK ), 404 ( Not Found ), etc
getStatusMessage() - Method in class org.nanoj.util.http.HttpClientResponse
Returns the HTTP response message if any : "OK", "Not Found", "Unauthorized", etc
getTable(String) - Method in class org.nanoj.util.tinydb.TinyDatabase
Returns the table object for the given table name
If the table doesn't exist an exception is thrown
The table returned is ready to use (its records are loaded)
getTable(String, boolean) - Method in class org.nanoj.util.tinydb.TinyDatabase
Returns the table object for the given table name (or null if the table is unknown and 'mustExist' flag = 'false')
If a table is returned, it is ready to use (its records are loaded)
getTableFile() - Method in class org.nanoj.util.tinydb.TinyTable
Returns the filename of this table (filesystem file path)
getTableName() - Method in class org.nanoj.util.tinydb.TinyTable
Returns the logical name of this table
getTableNames() - Method in class org.nanoj.util.tinydb.TinyDatabase
Returns all the table names registered in the database dictionary
getTypedValue(Class<T>, String) - Method in class org.nanoj.util.beanmapper.BeanMapper
Returns the typed value instance after conversion from the given string value
getUtilDate(int, int, int) - Static method in class org.nanoj.util.DateUtil
Returns a standard java.util.Date instance for the given day, month and year
getYear(Date) - Static method in class org.nanoj.util.DateUtil
Returns the year of the given date

H

head(String) - Method in class org.nanoj.util.http.HttpClient
 
head(URL) - Method in class org.nanoj.util.http.HttpClient
 
HttpClient - Class in org.nanoj.util.http
 
HttpClient() - Constructor for class org.nanoj.util.http.HttpClient
 
HttpClientRequestBody - Class in org.nanoj.util.http
 
HttpClientRequestBody() - Constructor for class org.nanoj.util.http.HttpClientRequestBody
 
HttpClientResponse - Class in org.nanoj.util.http
 
HttpClientResponse(HttpURLConnection) - Constructor for class org.nanoj.util.http.HttpClientResponse
 

I

increment() - Method in class org.nanoj.util.RollingCounter
 
insertOrUpdateRecord(Object, Object) - Method in class org.nanoj.util.tinydb.TinyTable
Inserts or update the given record associated with the given key
If a record exists for the key it is updated, else it is inserted
insertRecord(Object, Object) - Method in class org.nanoj.util.tinydb.TinyTable
Inserts the given record associated with the given key
If a record already exists for this key, a "duplicate key" exception if throwned
invoke(Object) - Method in class org.nanoj.util.introspection.BeanGetter
 
invoke(Object, Object) - Method in class org.nanoj.util.introspection.BeanSetter
 
invokeGetter(Object, String) - Static method in class org.nanoj.util.introspection.BeanIntrospector
 
invokeGetter(Object, String, Class<T>) - Static method in class org.nanoj.util.introspection.BeanIntrospector
 
isGetter(Method) - Static method in class org.nanoj.util.introspection.BeanIntrospector
Returns true if the given method is a "getter" :
starts with "get", no parameter, not "getClass", name length > 3
isLoaded() - Method in class org.nanoj.util.tinydb.TinyTable
Return true if the table records have been loaded (at least on time) from the file
isSetter(Method) - Static method in class org.nanoj.util.introspection.BeanIntrospector
Returns true if the given method is a "setter" :
starts with "set", one parameter, name length > 3
isSubElement() - Method in class org.nanoj.util.introspection.BeanGetter
 

J

JsonBeanTranslator - Class in org.nanoj.util.beanwriter
JSON implementation for BeanWriter
JsonBeanTranslator() - Constructor for class org.nanoj.util.beanwriter.JsonBeanTranslator
Creates a new JSON translator
By default the output will not be formated
JsonBeanTranslator(boolean) - Constructor for class org.nanoj.util.beanwriter.JsonBeanTranslator
Creates a new JSON translator
jsonBool(boolean) - Static method in class org.nanoj.util.beanwriter.util.JsonUtil
Returns JSON literal value the given boolean value
jsonBool(Boolean) - Static method in class org.nanoj.util.beanwriter.util.JsonUtil
Returns JSON literal value the given boolean object
jsonDate(Date) - Static method in class org.nanoj.util.beanwriter.util.JsonUtil
There's no predefined format for Date objects in JSON
Here, just use a string in ISO format
jsonNumber(Number) - Static method in class org.nanoj.util.beanwriter.util.JsonUtil
Returns JSON literal value for 'Number' instances (Byte, Short, Integer, Long, Float, Double, BigInteger, BigDecimal)
jsonObjectValue(Object) - Static method in class org.nanoj.util.beanwriter.util.JsonUtil
Returns the JSON value of the given object
The supported objects are : String, Number, Boolean, Date (util/sql), Time, Timestamp, Character, StringBuffer
jsonString(String) - Static method in class org.nanoj.util.beanwriter.util.JsonUtil
Convert "Standard Java String" to "JSON String value"
A String value in JSON is just the string itself between quotes,
with special characters protection ( \x )
JsonUtil - Class in org.nanoj.util.beanwriter.util
Utility class for JSON operations ( set of static methods )

L

load(Class<?>, String) - Method in class org.nanoj.util.serial.RecordSerializer
Load an object from the instance file corresponding to the given key
loadAllTables() - Method in class org.nanoj.util.tinydb.TinyDatabase
Loads all the tables in memory
loadTable() - Method in class org.nanoj.util.tinydb.TinyTable
Loads (or reloads) the table records from the file

M

mapToBean(Map<String, String>, Object) - Method in class org.nanoj.util.beanmapper.BeanMapper
Set each map entry to the corresponding bean property, if it exists.
mapToBean(Properties, Object) - Method in class org.nanoj.util.beanmapper.BeanMapper
Set each properties entry to the corresponding bean property, if it exists.
MemorySerializer - Class in org.nanoj.util.serial
Memory serializer
MemorySerializer() - Constructor for class org.nanoj.util.serial.MemorySerializer
Constructor

N

name - Variable in class org.nanoj.util.tson.Attribute
 
NULL_VALUE_FOR_PRIMITIVE_TYPE - Static variable in class org.nanoj.util.beanmapper.PropertyErrorCollector
 
nullOrVoid(String) - Static method in class org.nanoj.util.StrUtil
Returns true if the given String is null or void ( "", " ", " " )

O

open(Writer) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
open() - Method in class org.nanoj.util.beanwriter.BeanWriter
Invokes the open method of the writer ( ie : with an XML writer it opens the root tag )
open(Writer) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
open(Writer) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
openArray(Writer, Object[], String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
openArray(Writer, Object[], String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
openArray(Writer, Object[], String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
openCollection(Writer, Collection<?>, String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
openCollection(Writer, Collection<?>, String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
openCollection(Writer, Collection<?>, String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
openObject(Writer, Object, String) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
openObject(Writer, Object, String) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
openObject(Writer, Object, String) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
openSubObjects(Writer, Object, String) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
 
openSubObjects(Writer, Object, String) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
openSubObjects(Writer, Object, String) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
org.nanoj.util - package org.nanoj.util
 
org.nanoj.util.beanmapper - package org.nanoj.util.beanmapper
 
org.nanoj.util.beanwriter - package org.nanoj.util.beanwriter
 
org.nanoj.util.beanwriter.util - package org.nanoj.util.beanwriter.util
 
org.nanoj.util.file - package org.nanoj.util.file
 
org.nanoj.util.http - package org.nanoj.util.http
 
org.nanoj.util.introspection - package org.nanoj.util.introspection
 
org.nanoj.util.serial - package org.nanoj.util.serial
 
org.nanoj.util.tinydb - package org.nanoj.util.tinydb
 
org.nanoj.util.tson - package org.nanoj.util.tson
 

P

parse(String) - Static method in class org.nanoj.util.beanwriter.util.XmlUtil
Parse the given File name
parse(File) - Static method in class org.nanoj.util.beanwriter.util.XmlUtil
Parse the given File object
parse(InputStream) - Static method in class org.nanoj.util.beanwriter.util.XmlUtil
Parse the given InputStream
parse(String) - Static method in class org.nanoj.util.DateUtil
Returns the Date instance corresponding to the given date/time/datetime parameter in ISO format :
. "" or null : returns null
.
parse(String) - Method in class org.nanoj.util.file.GenericFileParser
Parse the given file
parse(InputStream) - Method in class org.nanoj.util.file.GenericFileParser
Parse the given input
parse(BufferedReader) - Method in class org.nanoj.util.file.GenericFileParser
Parse the given input
parse() - Method in class org.nanoj.util.tson.Parser
 
parseDate(String) - Static method in class org.nanoj.util.DateUtil
Parse the given date ( supposed to be in ISO format : "YYYY-MM-DD" )
parseDateTime(String) - Static method in class org.nanoj.util.DateUtil
Parse the given date & time ( supposed to be in ISO format : "YYYY-MM-DD HH:MM:SS" )
Parser - Class in org.nanoj.util.tson
 
Parser(byte[], HashMap<String, Class<?>>) - Constructor for class org.nanoj.util.tson.Parser
 
ParserUtil - Class in org.nanoj.util.tson
 
ParserUtil() - Constructor for class org.nanoj.util.tson.ParserUtil
 
parseTime(String) - Static method in class org.nanoj.util.DateUtil
Parse the given time ( supposed to be in ISO format : "HH:MM:SS" )
post(String, String) - Method in class org.nanoj.util.http.HttpClient
 
post(String, byte[]) - Method in class org.nanoj.util.http.HttpClient
 
post(URL, byte[]) - Method in class org.nanoj.util.http.HttpClient
 
PropertyErrorCollector - Class in org.nanoj.util.beanmapper
 
PropertyErrorCollector() - Constructor for class org.nanoj.util.beanmapper.PropertyErrorCollector
 
put(String, String) - Method in class org.nanoj.util.http.HttpClient
 
put(String, byte[]) - Method in class org.nanoj.util.http.HttpClient
 
put(URL, byte[]) - Method in class org.nanoj.util.http.HttpClient
 

R

read() - Method in class org.nanoj.util.serial.FileSerializer
Deserializes an object by reading the file defined by the constructor
read() - Method in class org.nanoj.util.serial.MemorySerializer
Read the object from the bytes array produced by the last 'write' operation
( returns the last object serialized by this serializer)
read(byte[]) - Method in class org.nanoj.util.serial.MemorySerializer
Read the object from the given bytes array
RecordSerializer - Class in org.nanoj.util.serial
Serializer tool to build basic DAO with "save/load/delete" operations
RecordSerializer(String) - Constructor for class org.nanoj.util.serial.RecordSerializer
Constructor
removeEnd(String, String) - Static method in class org.nanoj.util.StrUtil
 
RollingCounter - Class in org.nanoj.util
 
RollingCounter() - Constructor for class org.nanoj.util.RollingCounter
 

S

save(Object, String) - Method in class org.nanoj.util.serial.RecordSerializer
Save the given object in a instance file indentifying by the given key
saveAllTables() - Method in class org.nanoj.util.tinydb.TinyDatabase
Saves all the tables in the filesystem
saveTable() - Method in class org.nanoj.util.tinydb.TinyTable
Saves the table records in the file
setFieldValue(Object, String, Object) - Static method in class org.nanoj.util.tson.ParserUtil
 
setFollowRedirects(boolean) - Method in class org.nanoj.util.http.HttpClient
Set the "Follow Redirects" flag for this instance
setGlobalLevelThreshold(Level) - Static method in class org.nanoj.util.ConsoleLoggerProvider
Set the global level threshold = 'do not log under this threshold'
setNullTag(String) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
Set the name of the tag used for null objects ( the default is "null" and the output is ""
If the tag name is set to null then no null tag will be written
setWriteNullAttribute(boolean) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
Define if this writer must generate void attribute values for null values or not
If true : an attribute like firstName="" will be generated if the firstName property is null
If false : no attribute will be generated if the property is null
The default value is true.
split(String, char) - Static method in class org.nanoj.util.StrUtil
Split a string using the given char as separator ( simple split without "reg exp" )
start() - Method in class org.nanoj.util.file.GenericFileParser
Called when the parsing starts
STORE_RESPONSE_BODY - Static variable in class org.nanoj.util.http.HttpClientResponse
 
StrUtil - Class in org.nanoj.util
 
StrUtil() - Constructor for class org.nanoj.util.StrUtil
 

T

TextFileParser - Class in org.nanoj.util.file
 
TextFileParser() - Constructor for class org.nanoj.util.file.TextFileParser
Constructor
TextFileParser(String) - Constructor for class org.nanoj.util.file.TextFileParser
Constructor
timeISO(Date) - Static method in class org.nanoj.util.DateUtil
Returns the given date as an ISO time string ( "HH:MM:SS" )
TinyDatabase - Class in org.nanoj.util.tinydb
This class represents a "tiny database" instance
A "tiny database" is a set of "tables" ( based on Java Hashtable instances )
It works as an "in memory database", it can be useful for tests or very small databases
The database dictionary and the database tables are stored in the filesystem by serialization
TinyDatabase(String) - Constructor for class org.nanoj.util.tinydb.TinyDatabase
Constructs a new TinyDatabse located in the given folder
TinyTable - Class in org.nanoj.util.tinydb
This class represents one "table" of a "tiny database"
A "table" is based on a Hashtable instance, it contains 0..N "records" associated with a "key",
It provides standard entity persistance operations : insert, find, update, delete, insert or update
A table doesn't store the record object itself but a copy, in order to avoid unwanted changes
TinyTable(String, Class<?>, Class<?>, String) - Constructor for class org.nanoj.util.tinydb.TinyTable
Constructs a table
todaySqlDate() - Static method in class org.nanoj.util.DateUtil
Returns the current date as java.sql.Date
todayString(String) - Static method in class org.nanoj.util.DateUtil
Returns the current date as a String formated with the given format
todayUtilDate() - Static method in class org.nanoj.util.DateUtil
Returns the current date as java.util.Date

U

updateRecord(Object, Object) - Method in class org.nanoj.util.tinydb.TinyTable
Updates the record associated with the given key
If there's no record for this key nothing is updated (it's not an error)

V

value() - Method in class org.nanoj.util.RollingCounter
 
value - Variable in class org.nanoj.util.tson.Attribute
The attribute's value can be
. a basic value ( string, number, date, boolean, ... )
Java types : String, Boolean, BigDecimal, BigInteger
. an entity : in this case the value class can be any kind of object )
Java type : any kind of Java class
. a collection of entities : in this case the value class is a 'LinkedList'
Java type : LinkedList ( to keep the order )
. a null value
voidLine(int) - Method in class org.nanoj.util.file.GenericFileParser
Called for each void line

W

write(Object) - Method in class org.nanoj.util.serial.FileSerializer
Serializes the given object in the file defined by the constructor
write(Object) - Method in class org.nanoj.util.serial.MemorySerializer
Writes (serializes) the given object "in memory" and returns the result as an array of bytes.
writeComment(Writer, String) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
Write a comment
writeComment(String) - Method in class org.nanoj.util.beanwriter.BeanWriter
Converts the given string into a comment and writes it
( the string is writen between XML comments )
writeComment(Writer, String) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
writeComment(Writer, String) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
writeNullValue(Writer, String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
Write a null value
writeNullValue(Writer, String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
writeNullValue(Writer, String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
writeObject(Object) - Method in class org.nanoj.util.beanwriter.BeanWriter
Writes the given object in the output flow ( in XML, JSON, etc... ) without name
writeObject(Object, String) - Method in class org.nanoj.util.beanwriter.BeanWriter
Writes the given object in the output flow ( in XML, JSON, etc... )
writeSubElementValue(Writer, Object, String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
Write a basic value as a "sub-element"
writeSubElementValue(Writer, Object, String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
writeSubElementValue(Writer, Object, String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 
writeValue(Writer, Object, String, Object) - Method in interface org.nanoj.util.beanwriter.BeanTranslator
Write a basic value
writeValue(Writer, Object, String, Object) - Method in class org.nanoj.util.beanwriter.JsonBeanTranslator
 
writeValue(Writer, Object, String, Object) - Method in class org.nanoj.util.beanwriter.XmlBeanTranslator
 

X

XmlBeanTranslator - Class in org.nanoj.util.beanwriter
XML implementation for BeanWriter
XmlBeanTranslator() - Constructor for class org.nanoj.util.beanwriter.XmlBeanTranslator
Creates a new XML translator
By default the output will not be formated
XmlBeanTranslator(boolean) - Constructor for class org.nanoj.util.beanwriter.XmlBeanTranslator
Creates a new XML translator
XmlBeanTranslator(boolean, String) - Constructor for class org.nanoj.util.beanwriter.XmlBeanTranslator
Creates a new XML translator
xmlBool(boolean) - Static method in class org.nanoj.util.beanwriter.util.XmlUtil
Returns the given boolean as a Telosys XML boolean value
xmlDate(Date) - Static method in class org.nanoj.util.beanwriter.util.XmlUtil
Returns the given date as a Telosys XML date value ( in ISO format )
xmlString(String) - Static method in class org.nanoj.util.beanwriter.util.XmlUtil
Converts a "Standard String" to an "Xml String"
XmlUtil - Class in org.nanoj.util.beanwriter.util
Utility class for XML operations ( set of static methods )
A B C D E F G H I J L M N O P R S T U V W X 

Copyright © 2016. All rights reserved.