Package | Description |
---|---|
java.io |
Provides for system input and output through data streams,
serialization and the file system.
|
java.lang |
Provides classes that are fundamental to the design of the Java
programming language.
|
java.nio |
Defines buffers, which are containers for data, and provides an overview of the
other NIO packages.
|
java.nio.charset |
Defines charsets, decoders, and encoders, for translating between bytes and
Unicode characters.
|
java.nio.file |
Defines interfaces and classes for the Java virtual machine to access files,
file attributes, and file systems.
|
java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages.
|
java.time |
The main API for dates, times, instants, and durations.
|
java.time.format |
Provides classes to print and parse dates and times.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array).
|
java.util.regex |
Classes for matching character sequences against patterns specified by regular
expressions.
|
java.util.stream |
Classes to support functional-style operations on streams of elements, such
as map-reduce transformations on collections.
|
javax.annotation.processing |
Facilities for declaring annotation processors and for
allowing annotation processors to communicate with an annotation processing
tool environment.
|
javax.lang.model |
Classes and hierarchies of packages used to model the Java
programming language.
|
javax.lang.model.element |
Interfaces used to model elements of the Java programming language.
|
javax.lang.model.util |
Utilities to assist in the processing of
program elements and
types.
|
javax.swing.text |
Provides classes and interfaces that deal with editable
and noneditable text components.
|
javax.tools |
Provides interfaces for tools which can be invoked from a program,
for example, compilers.
|
Modifier and Type | Method | Description |
---|---|---|
CharArrayWriter |
CharArrayWriter.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
|
StringWriter |
StringWriter.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
|
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
|
PrintWriter |
PrintWriter.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
|
PrintStream |
PrintStream.append(CharSequence csq)
Appends the specified character sequence to this output stream.
|
|
CharArrayWriter |
CharArrayWriter.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
|
StringWriter |
StringWriter.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
|
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
|
PrintWriter |
PrintWriter.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
|
PrintStream |
PrintStream.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this output
stream.
|
Modifier and Type | Class | Description |
---|---|---|
class |
String
The
String class represents character strings. |
|
class |
StringBuffer
A thread-safe, mutable sequence of characters.
|
|
class |
StringBuilder
A mutable sequence of characters.
|
Modifier and Type | Method | Description |
---|---|---|
CharSequence |
StringBuffer.subSequence(int start,
int end) |
|
CharSequence |
CharSequence.subSequence(int start,
int end)
Returns a
CharSequence that is a subsequence of this sequence. |
|
CharSequence |
String.subSequence(int beginIndex,
int endIndex)
Returns a character sequence that is a subsequence of this sequence.
|
Modifier and Type | Method | Description |
---|---|---|
StringBuilder |
StringBuilder.append(CharSequence s) |
|
Appendable |
Appendable.append(CharSequence csq)
Appends the specified character sequence to this Appendable.
|
|
StringBuffer |
StringBuffer.append(CharSequence s)
Appends the specified
CharSequence to this
sequence. |
|
StringBuilder |
StringBuilder.append(CharSequence s,
int start,
int end) |
|
Appendable |
Appendable.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this
Appendable.
|
|
StringBuffer |
StringBuffer.append(CharSequence s,
int start,
int end) |
|
static int |
Character.codePointAt(CharSequence seq,
int index)
Returns the code point at the given index of the
CharSequence . |
|
static int |
Character.codePointBefore(CharSequence seq,
int index)
Returns the code point preceding the given index of the
CharSequence . |
|
static int |
Character.codePointCount(CharSequence seq,
int beginIndex,
int endIndex)
Returns the number of Unicode code points in the text range of
the specified char sequence.
|
|
boolean |
String.contains(CharSequence s)
Returns true if and only if this string contains the specified
sequence of char values.
|
|
boolean |
String.contentEquals(CharSequence cs)
Compares this string to the specified
CharSequence . |
|
StringBuilder |
StringBuilder.insert(int dstOffset,
CharSequence s) |
|
StringBuffer |
StringBuffer.insert(int dstOffset,
CharSequence s) |
|
StringBuilder |
StringBuilder.
|