akka.util
Class CompactByteString$

java.lang.Object
  extended by akka.util.CompactByteString$
All Implemented Interfaces:
java.io.Serializable

public class CompactByteString$
extends java.lang.Object
implements scala.Serializable

See Also:
Serialized Form

Field Summary
static CompactByteString$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
CompactByteString$()
           
 
Method Summary
 CompactByteString apply(byte[] bytes)
          Creates a new CompactByteString by copying a byte array.
 CompactByteString apply(java.nio.ByteBuffer bytes)
          Creates a new CompactByteString by copying bytes from a ByteBuffer.
 CompactByteString apply(scala.collection.Seq<java.lang.Object> bytes)
          Creates a new CompactByteString by copying bytes.
<T> CompactByteString
apply(scala.collection.Seq<T> bytes, scala.math.Integral<T> num)
          Creates a new CompactByteString by converting from integral numbers to bytes.
 CompactByteString apply(java.lang.String string)
          Creates a new CompactByteString by encoding a String as UTF-8.
 CompactByteString apply(java.lang.String string, java.lang.String charset)
          Creates a new CompactByteString by encoding a String with a charset.
 CompactByteString empty()
           
 CompactByteString fromArray(byte[] array, int offset, int length)
          Creates a new CompactByteString by copying length bytes starting at offset from an Array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE$

public static final CompactByteString$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

CompactByteString$

public CompactByteString$()
Method Detail

apply

public CompactByteString apply(byte[] bytes)
Creates a new CompactByteString by copying a byte array.

Parameters:
bytes - (undocumented)
Returns:
(undocumented)

apply

public CompactByteString apply(scala.collection.Seq<java.lang.Object> bytes)
Creates a new CompactByteString by copying bytes.

Parameters:
bytes - (undocumented)
Returns:
(undocumented)

apply

public <T> CompactByteString apply(scala.collection.Seq<T> bytes,
                                   scala.math.Integral<T> num)
Creates a new CompactByteString by converting from integral numbers to bytes.

Parameters:
bytes - (undocumented)
num - (undocumented)
Returns:
(undocumented)

apply

public CompactByteString apply(java.nio.ByteBuffer bytes)
Creates a new CompactByteString by copying bytes from a ByteBuffer.

Parameters:
bytes - (undocumented)
Returns:
(undocumented)

apply

public CompactByteString apply(java.lang.String string)
Creates a new CompactByteString by encoding a String as UTF-8.

Parameters:
string - (undocumented)
Returns:
(undocumented)

apply

public CompactByteString apply(java.lang.String string,
                               java.lang.String charset)
Creates a new CompactByteString by encoding a String with a charset.

Parameters:
string - (undocumented)
charset - (undocumented)
Returns:
(undocumented)

fromArray

public CompactByteString fromArray(byte[] array,
                                   int offset,
                                   int length)
Creates a new CompactByteString by copying length bytes starting at offset from an Array.

Parameters:
array - (undocumented)
offset - (undocumented)
length - (undocumented)
Returns:
(undocumented)

empty

public CompactByteString empty()