@Beta @CleanupObligation public final class AppendableLimiterWithOverflow extends Object implements Appendable, Closeable
Modifier and Type | Class and Description |
---|---|
static interface |
AppendableLimiterWithOverflow.OverflowSupplier
provide the overflow.
|
Constructor and Description |
---|
AppendableLimiterWithOverflow(int limit,
Appendable destination,
AppendableLimiterWithOverflow.OverflowSupplier owflSupplier) |
AppendableLimiterWithOverflow(int limit,
File overflowFile,
CharSequence destinationSuffix,
Charset characterSet,
Appendable destination) |
Modifier and Type | Method and Description |
---|---|
Appendable |
append(char c) |
Appendable |
append(CharSequence csq) |
Appendable |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
createOverflowIfNeeded() |
String |
toString() |
public AppendableLimiterWithOverflow(int limit, File overflowFile, CharSequence destinationSuffix, Charset characterSet, Appendable destination)
public AppendableLimiterWithOverflow(int limit, Appendable destination, AppendableLimiterWithOverflow.OverflowSupplier owflSupplier)
public Appendable append(CharSequence csq) throws IOException
append
in interface Appendable
IOException
public Appendable append(CharSequence csq, int start, int end) throws IOException
append
in interface Appendable
IOException
public Appendable append(char c) throws IOException
append
in interface Appendable
IOException
public void createOverflowIfNeeded() throws IOException
IOException
@DischargesObligation public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2018 SPF4J. All rights reserved.