Modifier and Type | Method and Description |
---|---|
CharSequence |
CharSequence.subSequence(int start,
int end) |
Modifier and Type | Class and Description |
---|---|
class |
CharBuffer
Class provided for the sole purpose of compiling the Readable interface.
|
Modifier and Type | Method and Description |
---|---|
static void |
LogContext.debug(CharSequence message)
Logs the specified debug message if debug messages are logged.
|
static void |
LogContext.error(CharSequence message)
Logs the specified error message to the current logging
context.
|
static void |
LogContext.error(Throwable error,
CharSequence message)
Logs the specified error and error message to the current logging
context.
|
static void |
LogContext.info(CharSequence message)
Logs the specified informative message.
|
protected void |
LogContext.logDebug(CharSequence message)
Logs the specified debug message.
|
protected void |
LogContext.logError(Throwable error,
CharSequence message)
Logs the specified error.
|
protected void |
LogContext.logInfo(CharSequence message)
Logs the specified informative message.
|
protected abstract void |
LogContext.logMessage(String category,
CharSequence message)
Logs the message of specified category (examples of category are
"debug", "info", "warning", "error").
|
protected void |
LogContext.logWarning(CharSequence message)
Logs the specified warning message.
|
static void |
LogContext.warning(CharSequence message)
Logs the specified warning message.
|
Modifier and Type | Method and Description |
---|---|
CharSequenceReader |
CharSequenceReader.setInput(CharSequence charSequence)
Sets the character sequence to use for reading.
|
void |
UTF8ByteBufferWriter.write(CharSequence csq)
Writes the specified character sequence.
|
void |
AppendableWriter.write(CharSequence csq)
Writes the specified character sequence.
|
void |
UTF8StreamWriter.write(CharSequence csq)
Writes the specified character sequence.
|
Modifier and Type | Method and Description |
---|---|
abstract Class |
Reflection.getClass(CharSequence name)
Returns the class having the specified name.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
TestContext.assertArrayEquals(boolean[] expected,
boolean[] actual,
CharSequence message)
Checks the equality of both arrays specified.
|
static boolean |
TestContext.assertArrayEquals(double[] expected,
double[] actual,
double delta,
CharSequence message)
Checks the equality of both arrays specified.
|
static boolean |
TestContext.assertArrayEquals(int[] expected,
int[] actual,
CharSequence message)
Checks the equality of both arrays specified.
|
static boolean |
TestContext.assertArrayEquals(long[] expected,
long[] actual,
CharSequence message)
Checks the equality of both arrays specified.
|
static boolean |
TestContext.assertArrayEquals(Object[] expected,
Object[] actual,
CharSequence message)
Checks the equality of the arrays specified.
|
static boolean |
TestContext.assertEquals(double expected,
double actual,
CharSequence message)
Deprecated.
Use
assertEquals(expected, actual, delta, message) instead |
static boolean |
TestContext.assertEquals(double expected,
double actual,
double delta,
CharSequence message)
Asserts that two doubles or floats are equal to within a positive delta.
|
static boolean |
TestContext.assertEquals(int expected,
int actual,
CharSequence message)
Convenience method equivalent to
assertEquals(new Integer(expected), new Integer(actual), message) . |
static boolean |
TestContext.assertEquals(long expected,
long actual,
CharSequence message)
Convenience method equivalent to
assertEquals(new Long(expected), new Long(actual)) . |
static boolean |
TestContext.assertEquals(Object expected,
Object actual,
CharSequence message)
Checks the equality of both objects specified.
|
static boolean |
TestContext.assertException(Class exceptionClass,
Runnable logic,
CharSequence message)
Checks that the specified logic raises an instance of the specified
exception.
|
static boolean |
TestContext.assertFalse(boolean actual,
CharSequence message)
Convenience method equivalent to
assertEquals(false, actual, message) . |
static boolean |
TestContext.assertNotNull(Object actual,
CharSequence message)
Convenience method equivalent to
assertTrue(actual != null, message) . |
static boolean |
TestContext.assertNull(Object actual,
CharSequence message)
Convenience method equivalent to
assertEquals(null, actual, message) . |
static boolean |
TestContext.assertSame(Object expected,
Object actual,
CharSequence message)
Checks that both objects specified refer to the same instance.
|
static boolean |
TestContext.assertTrue(boolean actual,
CharSequence message)
Convenience method equivalent to
assertEquals(true, actual, message) . |
protected boolean |
TestContext.doAssert(boolean value,
CharSequence message)
Asserts the specified value is
true . |
protected boolean |
JUnitContext.doAssert(boolean value,
CharSequence message) |
static boolean |
TestContext.fail(CharSequence message)
Convenience method equivalent to
assertTrue(false, message) . |
protected void |
JUnitContext.logMessage(String category,
CharSequence message) |
Modifier and Type | Class and Description |
---|---|
class |
CharArray
This class represents a
CharSequence
backed up by a char array. |
class |
Text
This class represents an immutable character sequence with
fast
concatenation , insertion and
deletion capabilities (O[Log(n)]) instead of
O[n] for StringBuffer/StringBuilder). |
class |
TextBuilder
This class represents an
Appendable text whose capacity expands
gently without incurring expensive resize/copy operations ever. |
Modifier and Type | Method and Description |
---|---|
CharSequence |
Cursor.nextToken(CharSequence csq,
char c)
Returns the subsequence from the specified cursor position not holding
the specified character.
|
CharSequence |
Cursor.nextToken(CharSequence csq,
CharSet charSet)
Returns the subsequence from the specified cursor position not holding
any of the characters specified.
|
CharSequence |
TextBuilder.subSequence(int start,
int end)
Returns a
CharSequence corresponding
to the character sequence between the specified indexes. |
CharSequence |
CharArray.subSequence(int start,
int end) |
CharSequence |
Text.subSequence(int start,
int end)
Returns
subtext(start, end) . |
Modifier and Type | Method and Description |
---|---|
Appendable |
TextBuilder.append(CharSequence csq)
Appends the specified character sequence.
|
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence.
|
Appendable |
TextBuilder.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence.
|
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence.
|
boolean |
Cursor.at(char c,
CharSequence csq)
Indicates if this cursor points to the specified character in the
specified character sequence.
|
boolean |
Cursor.at(CharSet charSet,
CharSequence csq)
Indicates if this cursor points to any of the specified character in the
specified character sequence.
|
boolean |
Cursor.at(String str,
CharSequence csq)
Indicates if this cursor points to the specified characters in the
specified sequence.
|
boolean |
Cursor.atEnd(CharSequence csq)
Indicates if this cursor points to the end of the specified
character sequence.
|
boolean |
TextBuilder.contentEquals(CharSequence csq)
Indicates if this text builder has the same character content as the
specified character sequence.
|
boolean |
Text.contentEquals(CharSequence csq)
Indicates if this text has the same character content as the specified
character sequence.
|
boolean |
Text.contentEqualsIgnoreCase(CharSequence csq)
Indicates if this text has the same character contend as the specified
character sequence ignoring case considerations.
|
boolean |
Text.endsWith(CharSequence suffix)
Indicates if this text ends with the specified suffix.
|
int |
CharSet.indexIn(CharSequence csq)
Equivalent to
indexIn(csq, 0) |
int |
CharSet.indexIn(CharSequence csq,
int fromIndex)
Returns the first index in the specified character sequence of
one of the character of this set.
|
int |
CharArray.indexOf(CharSequence csq)
Returns the index within this character sequence of the first occurrence
of the specified characters sequence searching forward.
|
int |
Text.indexOf(CharSequence csq)
Returns the index within this text of the first occurrence
of the specified character sequence searching forward.
|
int |
Text.indexOf(CharSequence csq,
int fromIndex)
Returns the index within this text of the first occurrence
of the specified characters sequence searching forward from
the specified index.
|
TextBuilder |
TextBuilder.insert(int index,
CharSequence csq)
Inserts the specified character sequence at the specified location.
|
static Text |
Text.intern(CharSequence csq)
Returns a text equals to the specified character sequence from a pool of
unique text instances in
ImmortalMemory . |
int |
CharSet.lastIndexIn(CharSequence csq)
Equivalent to
lastIndexIn(csq, csq.length()-1) |
int |
CharSet.lastIndexIn(CharSequence csq,
int fromIndex)
Returns the last index in the specified character sequence of
one of the character of this set.
|
int |
Text.lastIndexOf(CharSequence csq)
Returns the index within this text of the last occurrence of
the specified characters sequence searching backward.
|
int |
Text.lastIndexOf(CharSequence csq,
int fromIndex)
Returns the index within this text of the last occurrence of
the specified character sequence searching backward from the specified
index.
|
char |
Cursor.nextChar(CharSequence csq)
Returns the next character at this cursor position.The cursor
position is incremented by one.
|
CharSequence |
Cursor.nextToken(CharSequence csq,
char c)
Returns the subsequence from the specified cursor position not holding
the specified character.
|
CharSequence |
Cursor.nextToken(CharSequence csq,
CharSet charSet)
Returns the subsequence from the specified cursor position not holding
any of the characters specified.
|
Object |
TextFormat.parse(CharSequence csq)
Parses a whole character sequence from the beginning to produce an object
(convenience method).
|
abstract Object |
TextFormat.parse(CharSequence csq,
Cursor cursor)
Parses a portion of the specified
CharSequence from the
specified position to produce an object. |
static boolean |
TypeFormat.parseBoolean(CharSequence csq)
Parses the specified character sequence as a
boolean . |
static boolean |
TypeFormat.parseBoolean(CharSequence csq,
Cursor cursor)
Parses the specified character sequence from the specified position
as a
boolean . |
static byte |
TypeFormat.parseByte(CharSequence csq)
Parses the specified character sequence as a signed decimal
byte . |
static byte |
TypeFormat.parseByte(CharSequence csq,
int radix)
Parses the specified character sequence as a signed
byte
in the specified radix. |
static byte |
TypeFormat.parseByte(CharSequence csq,
int radix,
Cursor cursor)
Parses the specified character sequence from the specified position
as a signed
byte in the specified radix. |
static double |
TypeFormat.parseDouble(CharSequence csq)
Parses the specified character sequence as a
double . |
static double |
TypeFormat.parseDouble(CharSequence csq,
Cursor cursor)
Parses the specified character sequence from the specified position
as a
double . |
static float |
TypeFormat.parseFloat(CharSequence csq)
Parses the specified character sequence as a
float . |
static float |
TypeFormat.parseFloat(CharSequence csq,
Cursor cursor)
Parses the specified character sequence from the specified position
as a
float . |
static int |
TypeFormat.parseInt(CharSequence csq)
Parses the specified character sequence as a signed
int . |
static int |
TypeFormat.parseInt(CharSequence csq,
int radix)
Parses the specified character sequence as a signed
int
in the specified radix. |
static int |
TypeFormat.parseInt(CharSequence csq,
int radix,
Cursor cursor)
Parses the specified character sequence from the specified position
as a signed
int in the specified radix. |
static long |
TypeFormat.parseLong(CharSequence csq)
Parses the specified character sequence as a decimal
long . |
static long |
TypeFormat.parseLong(CharSequence csq,
int radix)
Parses the specified character sequence as a signed
long
in the specified radix. |
static long |
TypeFormat.parseLong(CharSequence csq,
int radix,
Cursor cursor)
Parses the specified character sequence from the specified position
as a signed
long in the specified radix. |
static short |
TypeFormat.parseShort(CharSequence csq)
Parses the specified character sequence as a signed decimal
short . |
static short |
TypeFormat.parseShort(CharSequence csq,
int radix)
Parses the specified character sequence as a signed
short
in the specified radix. |
static short |
TypeFormat.parseShort(CharSequence csq,
int radix,
Cursor cursor)
Parses the specified character sequence from the specified position
as a signed
short in the specified radix. |
Text |
Text.replace(CharSequence target,
CharSequence replacement)
Replaces each character sequence of this text that matches the specified
target sequence with the specified replacement sequence.
|
Text |
Text.replace(CharSet charSet,
CharSequence replacement)
Replaces the specified characters in this text with the specified
replacement sequence.
|
boolean |
Cursor.skip(char c,
CharSequence csq)
Moves this cursor forward only if at the specified character.
|
boolean |
Cursor.skip(CharSet charSet,
CharSequence csq)
Moves this cursor forward only if at any of the specified character.
|
boolean |
Cursor.skip(String str,
CharSequence csq)
Moves this cursor forward only if at the specified string.
|
boolean |
Cursor.skipAny(char c,
CharSequence csq)
Moves this cursor forward until it points to a character
different from the specified character.
|
boolean |
Cursor.skipAny(CharSet charSet,
CharSequence csq)
Moves this cursor forward until it points to a character
different from any of the character in the specified set.
|
boolean |
Text.startsWith(CharSequence prefix)
Indicates if this text starts with the specified prefix.
|
boolean |
Text.startsWith(CharSequence prefix,
int index)
Indicates if this text starts with the specified prefix
at the specified index.
|
Modifier and Type | Method and Description |
---|---|
void |
StandardLog.logDebug(CharSequence message) |
void |
StandardLog.logError(Throwable error,
CharSequence message) |
void |
StandardLog.logInfo(CharSequence message) |
protected void |
StandardLog.logMessage(String category,
CharSequence message) |
void |
StandardLog.logWarning(CharSequence message) |
Modifier and Type | Class and Description |
---|---|
class |
QName
This class represents unique identifiers for XML elements (tags) or
attributes (names).
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
QName.getLocalName()
Returns the local part of this qualified name or the full qualified
name if there is no namespace.
|
CharSequence |
QName.getNamespaceURI()
Returns the namespace URI of this qualified name or
null
if none (the local name is then the full qualified name). |
CharSequence |
QName.subSequence(int start,
int end)
Returns a new character sequence that is a subsequence of this sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLFormat.OutputElement.addText(CharSequence text)
Adds the content of a text-only element (equivalent to
getStreamWriter().writeCharacters(text) ). |
void |
XMLFormat.OutputElement.setAttribute(String name,
CharSequence value)
Sets the specified
CharSequence attribute
(null values are ignored). |
static QName |
QName.valueOf(CharSequence name)
Returns the qualified name corresponding to the specified character
sequence representation (may include the "{namespaceURI}" prefix).
|
static QName |
QName.valueOf(CharSequence namespaceURI,
CharSequence localName)
Returns the qualified name corresponding to the specified namespace URI
and local name.
|
Modifier and Type | Method and Description |
---|---|
int |
Attributes.getIndex(CharSequence qName)
Looks up the index of an attribute by XML 1.0 qualified name
(convenience method).
|
int |
Attributes.getIndex(CharSequence uri,
CharSequence localName)
Looks up the index of an attribute by namespace name (convenience
method).
|
CharArray |
Attributes.getType(CharSequence qName)
Looks up an attribute's type by XML 1.0 qualified name.
|
CharArray |
Attributes.getType(CharSequence uri,
CharSequence localName)
Looks up an attribute's type by Namespace name (convenience method).
|
CharArray |
Attributes.getValue(CharSequence qName)
Looks up an attribute's value by XML 1.0 qualified name (convenience
method).
|
CharArray |
Attributes.getValue(CharSequence uri,
CharSequence localName)
Looks up an attribute's value by Namespace name (convenience method).
|
Modifier and Type | Method and Description |
---|---|
CharSequence |
XMLStreamWriter.getPrefix(CharSequence uri)
Gets the prefix the specified uri is bound to.
|
CharSequence |
XMLStreamWriterImpl.getPrefix(CharSequence uri) |
Modifier and Type | Method and Description |
---|---|
CharArray |
XMLStreamReaderImpl.getAttributeValue(CharSequence uri,
CharSequence localName) |
CharArray |
XMLStreamReader.getAttributeValue(CharSequence namespaceURI,
CharSequence localName)
Returns the normalized attribute value of the attribute with the
namespace and localName.
|
CharArray |
XMLStreamReaderImpl.getNamespaceURI(CharSequence prefix) |
CharArray |
NamespaceContext.getNamespaceURI(CharSequence prefix)
Returns the namespace URI bound to a prefix in the current scope
or
null if the prefix is unbound. |
CharArray |
XMLStreamReader.getNamespaceURI(CharSequence prefix)
Returns the uri for the given prefix.
|
CharSequence |
XMLStreamWriter.getPrefix(CharSequence uri)
Gets the prefix the specified uri is bound to.
|
CharSequence |
XMLStreamWriterImpl.getPrefix(CharSequence uri) |
CharArray |
NamespaceContext.getPrefix(CharSequence namespaceURI)
Returns the prefix bound to the namespace URI in the current scope
or
null if the namespace URI is unbound. |
Iterator |
NamespaceContext.getPrefixes(CharSequence namespaceURI)
Returns all prefixes bound to a namespace URI in the current scope
(including predefined prefixes).
|
void |
XMLStreamReaderImpl.require(int type,
CharSequence namespaceURI,
CharSequence localName) |
void |
XMLStreamReader.require(int type,
CharSequence namespaceURI,
CharSequence localName)
Tests if the current event is of the given type and if the namespace and
name match the current namespace and name of the current event.
|
void |
XMLStreamWriter.setDefaultNamespace(CharSequence uri)
Binds a URI to the default namespace.
|
void |
XMLStreamWriterImpl.setDefaultNamespace(CharSequence uri) |
void |
XMLStreamWriter.setPrefix(CharSequence prefix,
CharSequence uri)
Sets the prefix the uri is bound to.
|
void |
XMLStreamWriterImpl.setPrefix(CharSequence prefix,
CharSequence uri) |
void |
XMLStreamWriter.writeAttribute(CharSequence localName,
CharSequence value)
Writes an attribute to the output stream without a prefix.
|
void |
XMLStreamWriterImpl.writeAttribute(CharSequence localName,
CharSequence value) |
void |
XMLStreamWriter.writeAttribute(CharSequence namespaceURI,
CharSequence localName,
CharSequence value)
Writes an attribute to the output stream.
|
void |
XMLStreamWriterImpl.writeAttribute(CharSequence namespaceURI,
CharSequence localName,
CharSequence value) |
void |
XMLStreamWriter.writeAttribute(CharSequence prefix,
CharSequence namespaceURI,
CharSequence localName,
CharSequence value)
Writes an attribute to the output stream.
|
void |
XMLStreamWriterImpl.writeAttribute(CharSequence prefix,
CharSequence namespaceURI,
CharSequence localName,
CharSequence value) |
void |
XMLStreamWriter.writeCData(CharSequence data)
Writes a CData section.
|
void |
XMLStreamWriterImpl.writeCData(CharSequence data) |
void |
XMLStreamWriter.writeCharacters(CharSequence text)
Writes text to the output.
|
void |
XMLStreamWriterImpl.writeCharacters(CharSequence text) |
void |
XMLStreamWriter.writeComment(CharSequence data)
Writes an xml comment with the data enclosed.
|
void |
XMLStreamWriterImpl.writeComment(CharSequence data) |
void |
XMLStreamWriter.writeDefaultNamespace(CharSequence namespaceURI)
Writes the default namespace to the stream.
|
void |
XMLStreamWriterImpl.writeDefaultNamespace(CharSequence namespaceURI) |
void |
XMLStreamWriter.writeDTD(CharSequence dtd)
Writes a DTD section (representing the entire doctypedecl
production from the XML 1.0 specification).
|
void |
XMLStreamWriterImpl.writeDTD(CharSequence dtd) |
void |
XMLStreamWriter.writeEmptyElement(CharSequence localName)
Writes an empty element tag to the output.
|
void |
XMLStreamWriterImpl.writeEmptyElement(CharSequence localName) |
void |
XMLStreamWriter.writeEmptyElement(CharSequence namespaceURI,
CharSequence localName)
Writes an empty element tag to the output.
|
void |
XMLStreamWriterImpl.writeEmptyElement(CharSequence namespaceURI,
CharSequence localName) |
void |
XMLStreamWriter.writeEmptyElement(CharSequence prefix,
CharSequence localName,
CharSequence namespaceURI)
Writes an empty element tag to the output.
|
void |
XMLStreamWriterImpl.writeEmptyElement(CharSequence prefix,
CharSequence localName,
CharSequence namespaceURI) |
void |
XMLStreamWriter.writeEntityRef(CharSequence name)
Writes an entity reference
|
void |
XMLStreamWriterImpl.writeEntityRef(CharSequence name) |
void |
XMLStreamWriter.writeNamespace(CharSequence prefix,
CharSequence namespaceURI)
Writes a namespace to the output stream.
|
void |
XMLStreamWriterImpl.writeNamespace(CharSequence prefix,
CharSequence namespaceURI) |
void |
XMLStreamWriter.writeProcessingInstruction(CharSequence target)
Writes a processing instruction.
|
void |
XMLStreamWriterImpl.writeProcessingInstruction(CharSequence target) |
void |
XMLStreamWriter.writeProcessingInstruction(CharSequence target,
CharSequence data)
Writes a processing instruction
|
void |
XMLStreamWriterImpl.writeProcessingInstruction(CharSequence target,
CharSequence data) |
void |
XMLStreamWriter.writeStartDocument(CharSequence version)
Writes the XML Declaration.
|
void |
XMLStreamWriterImpl.writeStartDocument(CharSequence version) |
void |
XMLStreamWriter.writeStartDocument(CharSequence encoding,
CharSequence version)
Writes the XML Declaration.
|
void |
XMLStreamWriterImpl.writeStartDocument(CharSequence encoding,
CharSequence version) |
void |
XMLStreamWriter.writeStartElement(CharSequence localName)
Writes a start tag to the output.
|
void |
XMLStreamWriterImpl.writeStartElement(CharSequence localName) |
void |
XMLStreamWriter.writeStartElement(CharSequence namespaceURI,
CharSequence localName)
Writes a start tag to the output.
|
void |
XMLStreamWriterImpl.writeStartElement(CharSequence namespaceURI,
CharSequence localName) |
void |
XMLStreamWriter.writeStartElement(CharSequence prefix,
CharSequence localName,
CharSequence namespaceURI)
Writes a start tag to the output.
|
void |
XMLStreamWriterImpl.writeStartElement(CharSequence prefix,
CharSequence localName,
CharSequence namespaceURI) |
Copyright © 2005–2015 Javolution. All rights reserved.