Package org.opencypher.tools.io
Interface Output.Readable
-
- All Superinterfaces:
Appendable,AutoCloseable,CharSequence,Closeable,Output
- Enclosing interface:
- Output
public static interface Output.Readable extends Output, CharSequence
An extension ofOutputthat signals that what was written can be read back.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opencypher.tools.io.Output
Output.Readable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intcodePointAt(int index)Returns the Unicode code point (starting) at the specified index.default booleancontentEquals(CharSequence that)Compares the contents of this object to the specifiedCharSequence.default Readerreader()Return aReaderthat reads the contents of this object.-
Methods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, length, subSequence, toString
-
Methods inherited from interface org.opencypher.tools.io.Output
and, append, append, append, append, append, append, append, append, append, append, append, append, appendCodePoint, close, escape, escape, flush, format, format, printLines, println, println, println, println, println, println, println, println, println, writer
-
-
-
-
Method Detail
-
codePointAt
int codePointAt(int index)
Returns the Unicode code point (starting) at the specified index.- Parameters:
index- the index to thecharvalues.- Returns:
- the code point value of the character at the
index - Throws:
IndexOutOfBoundsException- if theindexargument is negative or not less than the length of the contents of this object.- See Also:
the equivalent method of String
-
contentEquals
default boolean contentEquals(CharSequence that)
Compares the contents of this object to the specifiedCharSequence. The result istrueif and only if this instance holds the same sequence ifcharvalues as the specified sequence.- Parameters:
that- the sequence to compare this instance against.- Returns:
trueif thisStringrepresents the same sequence ofcharvalues as the specified sequence,falseotherwise.- See Also:
the equivalent method of String.
-
-