public abstract class OStringSerializerHelper extends Object
Modifier and Type | Field and Description |
---|---|
static char |
BAG_BEGIN |
static char |
BAG_END |
static char |
BINARY_BEGINEND |
static String |
CLASS_SEPARATOR |
static char |
COLLECTION_SEPARATOR |
static char |
CUSTOM_TYPE |
static char[] |
DEFAULT_FIELD_SEPARATOR |
static char[] |
DEFAULT_IGNORE_CHARS |
static char |
EMBEDDED_BEGIN |
static char |
EMBEDDED_END |
static char |
ENTRY_SEPARATOR |
static char |
LINK |
static String |
LINKSET_PREFIX |
static char |
LIST_BEGIN |
static char |
LIST_END |
static char |
MAP_BEGIN |
static char |
MAP_END |
static char[] |
PARAMETER_EXT_SEPARATOR |
static char |
PARAMETER_NAMED |
static char |
PARAMETER_POSITIONAL |
static char[] |
PARAMETER_SEPARATOR |
static char |
RECORD_SEPARATOR |
static char |
SET_BEGIN |
static char |
SET_END |
static String |
SKIPPED_VALUE |
Constructor and Description |
---|
OStringSerializerHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(String iText,
char iSeparator) |
static String |
decode(String iText)
Transforms, only if needed, the source string un-escaping the characters \ and ".
|
static String |
encode(String iText)
Transforms, only if needed, the source string escaping the characters \ and ".
|
static Object |
fieldTypeFromStream(ODocument iDocument,
OType iType,
Object iValue) |
static int |
findEndBlock(String iOrigin,
char iBeginChar,
char iEndChar,
int iBeginOffset)
Finds the end of a block delimited by 2 chars.
|
static byte[] |
getBinaryContent(Object iValue)
Returns the binary representation of a content.
|
static int |
getCollection(String iText,
int iStartPosition,
Collection<String> iCollection) |
static int |
getCollection(String iText,
int iStartPosition,
Collection<String> iCollection,
char iCollectionBegin,
char iCollectionEnd,
char iCollectionSeparator) |
static int |
getEmbedded(String iText,
int iBeginPosition,
int iEndPosition,
StringBuilder iEmbedded) |
static int |
getHigherIndexOf(String iText,
int iBeginOffset,
String... iToSearch) |
static int |
getLowerIndexOf(String iText,
int iBeginOffset,
String... iToSearch) |
static int |
getLowerIndexOfKeywords(String iText,
int iBeginOffset,
String... iToSearch) |
static Map<String,String> |
getMap(String iText) |
static List<String> |
getParameters(String iText) |
static int |
getParameters(String iText,
int iBeginPosition,
int iEndPosition,
List<String> iParameters) |
static OClass |
getRecordClassName(String iValue,
OClass iLinkedClass) |
static String |
getStringContent(Object iValue)
Deprecated.
|
static int |
indexOf(String iSource,
int iBegin,
char... iChars) |
static boolean |
isAlphanumeric(String iContent)
Checks if a string contains alphanumeric only characters.
|
static boolean |
isCharPresent(char iCharacter,
char[] iCharacters) |
static String |
joinIntArray(int[] iArray) |
static int |
parse(String iSource,
StringBuilder iBuffer,
int beginIndex,
int endIndex,
char[] iSeparator,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
int iMinPosSeparatorAreValid,
boolean considerBags,
boolean iUnicode,
boolean iPreserveQuotes,
int iMaxValueSizeBeforeSkip,
char... iJumpChars) |
static int |
parse(String iSource,
StringBuilder iBuffer,
int beginIndex,
int endIndex,
char[] iSeparator,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
int iMinPosSeparatorAreValid,
boolean considerBags,
boolean iPreserveQuotes,
char... iJumpChars) |
static int |
parse(String iSource,
StringBuilder iBuffer,
int beginIndex,
int endIndex,
char[] iSeparator,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
int iMinPosSeparatorAreValid,
boolean considerBags,
char... iJumpChars) |
static String |
removeQuotationMarks(String iValue) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
boolean[] iRecordSeparatorIncludeAsPrefix,
boolean[] iRecordSeparatorIncludeAsPostfix,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean considerBags,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean iConsiderBags,
boolean iUnicode,
boolean iPreserveQuotes,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean iConsiderBags,
boolean iUnicode,
boolean iPreserveQuotes,
int maxRidbagSizeBeforeSkip,
Set<Integer> skippedPartsIndexes,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean iConsiderBags,
boolean iUnicode,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean iConsiderBags,
boolean iUnicode,
int maxRidbagSizeBeforeSkip,
Set<Integer> skippedPartsIndexes,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean iConsiderBags,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char[] iRecordSeparator,
int beginIndex,
int endIndex,
boolean iStringSeparatorExtended,
boolean iConsiderBraces,
boolean iConsiderSets,
boolean iConsiderBags,
int maxRidbagSizeBeforeSkip,
Set<Integer> skippedPartsIndexes,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char iRecordSeparator,
boolean iConsiderSets,
boolean considerBags,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char iRecordSeparator,
boolean iPreserveQuotes,
char... iJumpChars) |
static List<String> |
smartSplit(String iSource,
char iRecordSeparator,
char... iJumpChars) |
static String |
smartTrim(String source,
boolean removeLeadingSpaces,
boolean removeTailingSpaces) |
static Collection<String> |
split(Collection<String> iParts,
String iSource,
char iRecordSeparator,
char... iJumpCharacters) |
static Collection<String> |
split(Collection<String> iParts,
String iSource,
int iStartPosition,
int iEndPosition,
char iRecordSeparator,
char... iJumpCharacters) |
static Collection<String> |
split(Collection<String> iParts,
String iSource,
int iStartPosition,
int iEndPosition,
String iRecordSeparators,
char... iJumpCharacters) |
static List<String> |
split(String iSource,
char iRecordSeparator,
char... iJumpCharacters) |
static List<String> |
split(String iSource,
int iStartPosition,
int iEndPosition,
char iRecordSeparator,
char... iJumpCharacters) |
static int[] |
splitIntArray(String iInput) |
static boolean |
startsWithIgnoreCase(String iFirst,
String iSecond) |
public static final char RECORD_SEPARATOR
public static final String CLASS_SEPARATOR
public static final char LINK
public static final char EMBEDDED_BEGIN
public static final char EMBEDDED_END
public static final char LIST_BEGIN
public static final char LIST_END
public static final char SET_BEGIN
public static final String LINKSET_PREFIX
public static final char SET_END
public static final char MAP_BEGIN
public static final char MAP_END
public static final char BAG_BEGIN
public static final char BAG_END
public static final char BINARY_BEGINEND
public static final char CUSTOM_TYPE
public static final char ENTRY_SEPARATOR
public static final char PARAMETER_NAMED
public static final char PARAMETER_POSITIONAL
public static final char[] PARAMETER_SEPARATOR
public static final char[] PARAMETER_EXT_SEPARATOR
public static final char[] DEFAULT_IGNORE_CHARS
public static final char[] DEFAULT_FIELD_SEPARATOR
public static final char COLLECTION_SEPARATOR
public static final String SKIPPED_VALUE
public static Object fieldTypeFromStream(ODocument iDocument, OType iType, Object iValue)
public static String smartTrim(String source, boolean removeLeadingSpaces, boolean removeTailingSpaces)
public static List<String> smartSplit(String iSource, char iRecordSeparator, boolean iPreserveQuotes, char... iJumpChars)
public static List<String> smartSplit(String iSource, char iRecordSeparator, char... iJumpChars)
public static List<String> smartSplit(String iSource, char iRecordSeparator, boolean iConsiderSets, boolean considerBags, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean iConsiderBags, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean iConsiderBags, int maxRidbagSizeBeforeSkip, Set<Integer> skippedPartsIndexes, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean iConsiderBags, boolean iUnicode, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean iConsiderBags, boolean iUnicode, int maxRidbagSizeBeforeSkip, Set<Integer> skippedPartsIndexes, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean iConsiderBags, boolean iUnicode, boolean iPreserveQuotes, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean iConsiderBags, boolean iUnicode, boolean iPreserveQuotes, int maxRidbagSizeBeforeSkip, Set<Integer> skippedPartsIndexes, char... iJumpChars)
public static List<String> smartSplit(String iSource, char[] iRecordSeparator, boolean[] iRecordSeparatorIncludeAsPrefix, boolean[] iRecordSeparatorIncludeAsPostfix, int beginIndex, int endIndex, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, boolean considerBags, char... iJumpChars)
public static int parse(String iSource, StringBuilder iBuffer, int beginIndex, int endIndex, char[] iSeparator, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, int iMinPosSeparatorAreValid, boolean considerBags, char... iJumpChars)
public static int parse(String iSource, StringBuilder iBuffer, int beginIndex, int endIndex, char[] iSeparator, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, int iMinPosSeparatorAreValid, boolean considerBags, boolean iPreserveQuotes, char... iJumpChars)
public static int parse(String iSource, StringBuilder iBuffer, int beginIndex, int endIndex, char[] iSeparator, boolean iStringSeparatorExtended, boolean iConsiderBraces, boolean iConsiderSets, int iMinPosSeparatorAreValid, boolean considerBags, boolean iUnicode, boolean iPreserveQuotes, int iMaxValueSizeBeforeSkip, char... iJumpChars)
public static boolean isCharPresent(char iCharacter, char[] iCharacters)
public static List<String> split(String iSource, char iRecordSeparator, char... iJumpCharacters)
public static Collection<String> split(Collection<String> iParts, String iSource, char iRecordSeparator, char... iJumpCharacters)
public static List<String> split(String iSource, int iStartPosition, int iEndPosition, char iRecordSeparator, char... iJumpCharacters)
public static Collection<String> split(Collection<String> iParts, String iSource, int iStartPosition, int iEndPosition, char iRecordSeparator, char... iJumpCharacters)
public static Collection<String> split(Collection<String> iParts, String iSource, int iStartPosition, int iEndPosition, String iRecordSeparators, char... iJumpCharacters)
public static String joinIntArray(int[] iArray)
public static int[] splitIntArray(String iInput)
public static boolean contains(String iText, char iSeparator)
public static int getCollection(String iText, int iStartPosition, Collection<String> iCollection)
public static int getCollection(String iText, int iStartPosition, Collection<String> iCollection, char iCollectionBegin, char iCollectionEnd, char iCollectionSeparator)
public static int getParameters(String iText, int iBeginPosition, int iEndPosition, List<String> iParameters)
public static int getEmbedded(String iText, int iBeginPosition, int iEndPosition, StringBuilder iEmbedded)
public static String encode(String iText)
iText
- Input Stringdecode(String)
public static String decode(String iText)
iText
- Input Stringencode(String)
@Deprecated public static String getStringContent(Object iValue)
iValue
- public static byte[] getBinaryContent(Object iValue)
public static boolean isAlphanumeric(String iContent)
iContent
- String to checkpublic static int indexOf(String iSource, int iBegin, char... iChars)
public static final int findEndBlock(String iOrigin, char iBeginChar, char iEndChar, int iBeginOffset)
public static int getLowerIndexOf(String iText, int iBeginOffset, String... iToSearch)
public static int getLowerIndexOfKeywords(String iText, int iBeginOffset, String... iToSearch)
Copyright © 2009–2020 OrientDB. All rights reserved.