public class NoopSecondaryStorage extends java.lang.Object implements SecondaryStorage
| Constructor and Description |
|---|
NoopSecondaryStorage() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUp()
This allows you to ask the secondary storage to clean up after itself.
|
long |
getMemoryLimitBeforeUse()
Returns the number of characters that should be stored in memory before this secondary storage.
|
void |
write(char[] chars,
int off,
int len) |
void |
write(int c) |
void |
write(java.lang.String str) |
void |
write(java.lang.String str,
int off,
int len) |
void |
writeTo(java.io.Writer out)
This method will close the "secondary storage" and write the captured output
to the specified output writer.
|
public long getMemoryLimitBeforeUse()
SecondaryStoragegetMemoryLimitBeforeUse in interface SecondaryStoragepublic void write(int c)
write in interface SecondaryStorageWriter.write(int)public void write(char[] chars,
int off,
int len)
write in interface SecondaryStorageWriter.write(char[], int, int)public void write(java.lang.String str,
int off,
int len)
write in interface SecondaryStorageWriter.write(String, int, int)public void write(java.lang.String str)
write in interface SecondaryStorageWriter.write(String)public void writeTo(java.io.Writer out)
SecondaryStoragewriteTo in interface SecondaryStorageout - the output writer to send the stored datapublic void cleanUp()
SecondaryStoragecleanUp in interface SecondaryStorage