public class StringPartAppend extends StringPartScan implements java.lang.Appendable
StringPartScan
.
All append methods sets the endMax of the StringPart to the new length. The current part end
will be set to endMax only if is on endMax before append.Modifier and Type | Class and Description |
---|---|
private class |
StringPartAppend.OutputStream_StringPartAppend |
StringPart.Iter, StringPart.Part
Modifier and Type | Field and Description |
---|---|
private java.io.OutputStream |
outputStream |
static java.lang.String |
sVersion
Version, history and license.
|
beginScan, beginScanLast, nLastFloatNumber, nLastIntegerNumber, nLastIntegerSign, sLastString
absPos0, bCurrentOk, begiMin, begin, beginLast, bFound, bitMode, bStartScan, content, end, endLast, endMax, mSeekBack, mSeekCheck, mSeekEnd, mSeekToLeft, mSkipOverCommentInsideText_mode, mSkipOverCommentToEol_mode, mSkipOverWhitespace_mode, sCheckNewline, sCheckWhitespaces, sCommentEnd, sCommentStart, sCommentToEol, seekBack, seekEnd, seekNormal, seekToLeft, sFile
Constructor and Description |
---|
StringPartAppend()
Creates an String jar with 1000 character (default size).
|
StringPartAppend(int size)
Creates an String jar with a given character size.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Appendable |
append(char c) |
java.lang.Appendable |
append(java.lang.CharSequence csq) |
java.lang.Appendable |
append(java.lang.CharSequence csq,
int from,
int to) |
java.lang.StringBuilder |
buffer()
Returns the internal StringBuilder to use methods of that.
|
void |
clear()
Clears the content of the StringBuilder and resets all StringPart length.
|
java.io.OutputStream |
outputStream()
Creates or returns an instance which handles this class as OutputStream.
|
close, getCircumScriptionToAnyChar, getCircumScriptionToAnyCharOutsideQuotion, getLastScannedFloatNumber, getLastScannedIntegerNumber, getLastScannedIntegerSign, getLastScannedPart, getLastScannedPart, getLastScannedString, readNextContent, scan, scan, scanAnyChar, scanChar, scanDigits, scanDigits, scanFloatNumber, scanFloatNumber, scanFloatNumber, scanFractionalExponent, scanFractionalNumber, scanHex, scanHex, scanHexOrDecimal, scanHexOrDecimal, scanIdentifier, scanIdentifier, scanInteger, scanInteger, scanInteger, scanLiteral, scanOk, scanPositivInteger, scanQuotion, scanQuotion, scanSkipComment, scanSkipSpace, scanStart, scanStart, scanToAnyChar, scanToAnyChar, seekScanPos
absCharAt, absSubString, assign, assign, assignFromEnd, assignReplaceEnv, charAt, checkCharAt, clean, compareTo, contentTillSpaceEndOrQuotation, debugString, equals, firstlineMaxpart, found, fromEnd, getCharSequenceRange, getCurrent, getCurrent, getCurrentChar, getCurrentColumn, getCurrentPart, getCurrentPart, getCurrentPosition, getInputfile, getLastPart, getLenCurrent, getLineAndColumn, getPart, indexEndOfQuotation, indexEndOfQuotation, indexEndOfQuotion, indexOf, indexOf, indexOf, indexOf, indexOfAnyChar, indexOfAnyChar, indexOfAnyChar, indexOfAnyCharOutsideQuotation, indexOfAnyCharOutsideQuotion, indexOfAnyString, indexOfNoChar, indexOfNoChar, iterator, lastIndexOfAnyChar, len0end, lenBacktoNoChar, lenBacktoNoWhiteSpaces, length, lengthMaxPart, lento, lento, lento, lento, lentoAnyChar, lentoAnyChar, lentoAnyChar, lentoAnyCharOutsideQuotation, lentoAnyCharOutsideQuotion, lentoAnyNonEscapedChar, lentoAnyString, lentoAnyString, lentoAnyStringWithIndent, lentoIdentifier, lentoIdentifier, lentoLineEnd, lentoNonEscapedString, lentoNumber, lentoPos, lentoQuotionEnd, line, nextlineMaxpart, replace, seek, seek, seek, seek, seekAfterNewline, seekAnyChar, seekAnyString, seekBackToAnyChar, seekBackward, seekBegin, seekCheck, seekCheckEnd, seekEnd, seekNextLine, seekNoChar, seekNoWhitespace, seekNoWhitespaceOrComments, seekPos, seekPosBack, setBeginMaxPart, setCurrentMaxPart, setCurrentPartTo, setCurrentPosition, setIgnoreComment, setIgnoreComment, setIgnoreEndlineComment, setIgnoreEndlineComment, setIgnoreWhitespaces, setInputfile, setLengthMax, setParttoMax, skipWhitespaceAndComment, startsWith, subSequence, substring, toString, trim, trimComment, trimWhiteSpaces, XXXindexOf
public static final java.lang.String sVersion
outputStream()
, able to use as OutputStream
especially for javax.tools.Tool#run(java.io.InputStream, OutputStream, OutputStream, String...)
or such other.
private java.io.OutputStream outputStream
public StringPartAppend()
StringBuilder
will be increased if necessary.public StringPartAppend(int size)
public java.lang.StringBuilder buffer()
StringPart.seekBegin()
and StringPart.setLengthMax()
or StringPart.setParttoMax()
of the returned stringBuilder().
Use the following schema: StringBuilder myBuffer = myStringPartAppend.buffer(); myBuffer.insert("do anything with it"); myStringPartAppend.setParttoMax();
public void clear()
public java.lang.Appendable append(java.lang.CharSequence csq) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
public java.lang.Appendable append(char c) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
public java.lang.Appendable append(java.lang.CharSequence csq, int from, int to) throws java.io.IOException
append
in interface java.lang.Appendable
java.io.IOException
public java.io.OutputStream outputStream()