org.elasticsearch.common.compress
Class CompressedString

java.lang.Object
  extended by org.elasticsearch.common.compress.CompressedString
All Implemented Interfaces:
Streamable

public class CompressedString
extends java.lang.Object
implements Streamable


Constructor Summary
CompressedString(java.lang.String str)
           
 
Method Summary
 byte[] compressed()
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static CompressedString readCompressedString(StreamInput in)
           
 void readFrom(StreamInput in)
           
 java.lang.String string()
           
 byte[] uncompressed()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompressedString

public CompressedString(java.lang.String str)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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