| Modifier and Type | Method and Description |
|---|---|
CharsRef |
add(CharsRef prefix,
CharsRef output)
Eg add("foo", "bar") -> "foobar"
|
CharsRef |
common(CharsRef output1,
CharsRef output2)
Eg common("foo", "foobar") -> "foo"
|
CharsRef |
getNoOutput()
NOTE: this output is compared with == so you must
ensure that all methods return the single object if
it's really no output
|
static CharSequenceOutputs |
getSingleton() |
String |
outputToString(CharsRef output) |
CharsRef |
read(DataInput in)
Decode an output value previously written with
Outputs.write(Object, DataOutput). |
CharsRef |
subtract(CharsRef output,
CharsRef inc)
Eg subtract("foobar", "foo") -> "bar"
|
void |
write(CharsRef prefix,
DataOutput out)
Encode an output value into a
DataOutput. |
merge, readFinalOutput, writeFinalOutputpublic static CharSequenceOutputs getSingleton()
public CharsRef common(CharsRef output1, CharsRef output2)
Outputspublic CharsRef subtract(CharsRef output, CharsRef inc)
Outputspublic CharsRef add(CharsRef prefix, CharsRef output)
Outputspublic void write(CharsRef prefix, DataOutput out) throws IOException
OutputsDataOutput.write in class Outputs<CharsRef>IOExceptionpublic CharsRef read(DataInput in) throws IOException
OutputsOutputs.write(Object, DataOutput).read in class Outputs<CharsRef>IOExceptionpublic CharsRef getNoOutput()
OutputsgetNoOutput in class Outputs<CharsRef>public String outputToString(CharsRef output)
outputToString in class Outputs<CharsRef>Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.