org.elasticsearch.common.compress
Class CompressedString
java.lang.Object
org.elasticsearch.common.compress.CompressedString
- All Implemented Interfaces:
- Streamable
public class CompressedString
- extends java.lang.Object
- implements Streamable
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CompressedString
public CompressedString(java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
compressed
public byte[] compressed()
uncompressed
public byte[] uncompressed()
throws java.io.IOException
- Throws:
java.io.IOException
string
public java.lang.String string()
throws java.io.IOException
- Throws:
java.io.IOException
readCompressedString
public static CompressedString readCompressedString(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object