akka.util
Class ByteString.ByteString1C

java.lang.Object
  extended by akka.util.ByteString
      extended by akka.util.CompactByteString
          extended by akka.util.ByteString.ByteString1C
All Implemented Interfaces:
java.io.Serializable, scala.collection.generic.FilterMonadic<java.lang.Object,ByteString>, scala.collection.generic.GenericTraversableTemplate<java.lang.Object,scala.collection.immutable.IndexedSeq>, scala.collection.generic.HasNewBuilder<java.lang.Object,ByteString>, scala.collection.GenIterable<java.lang.Object>, scala.collection.GenIterableLike<java.lang.Object,ByteString>, scala.collection.GenSeq<java.lang.Object>, scala.collection.GenSeqLike<java.lang.Object,ByteString>, scala.collection.GenTraversable<java.lang.Object>, scala.collection.GenTraversableLike<java.lang.Object,ByteString>, scala.collection.GenTraversableOnce<java.lang.Object>, scala.collection.IndexedSeq<java.lang.Object>, scala.collection.IndexedSeqLike<java.lang.Object,ByteString>, scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>, scala.collection.Iterable<java.lang.Object>, scala.collection.IterableLike<java.lang.Object,ByteString>, scala.collection.Parallelizable<java.lang.Object,scala.collection.parallel.ParSeq<java.lang.Object>>, scala.collection.Seq<java.lang.Object>, scala.collection.SeqLike<java.lang.Object,ByteString>, scala.collection.Traversable<java.lang.Object>, scala.collection.TraversableLike<java.lang.Object,ByteString>, scala.collection.TraversableOnce<java.lang.Object>, scala.Equals, scala.Function1<java.lang.Object,java.lang.Object>, scala.Immutable, scala.PartialFunction<java.lang.Object,java.lang.Object>
Enclosing class:
ByteString

public static final class ByteString.ByteString1C
extends CompactByteString

A compact (unsliced) and unfragmented ByteString, implementation of ByteString1C.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class akka.util.ByteString
ByteString.ByteString1, ByteString.ByteString1C, ByteString.ByteStrings
 
Nested classes/interfaces inherited from interface scala.collection.immutable.IndexedSeq
scala.collection.immutable.IndexedSeq.Impl<A>
 
Nested classes/interfaces inherited from interface scala.PartialFunction
scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B>
 
Nested classes/interfaces inherited from interface scala.collection.IndexedSeqLike
scala.collection.IndexedSeqLike.Elements
 
Nested classes/interfaces inherited from interface scala.collection.SeqLike
scala.collection.SeqLike.CombinationsItr, scala.collection.SeqLike.PermutationsItr
 
Nested classes/interfaces inherited from interface scala.collection.TraversableLike
scala.collection.TraversableLike.WithFilter
 
Nested classes/interfaces inherited from interface scala.collection.TraversableOnce
scala.collection.TraversableOnce.BufferedCanBuildFrom<A,Coll extends scala.collection.TraversableOnce<java.lang.Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<A>
 
Method Summary
 byte apply(int idx)
           
 java.nio.ByteBuffer asByteBuffer()
          Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.
 java.lang.String decodeString(java.lang.String charset)
          Decodes this ByteString using a charset to produce a String.
 ByteIterator.ByteArrayIterator iterator()
           
 int length()
           
 ByteString slice(int from, int until)
           
 
Methods inherited from class akka.util.CompactByteString
apply, apply, apply, apply, apply, apply, compact, empty, fromArray, isCompact
 
Methods inherited from class akka.util.ByteString
canBuildFrom, copyToArray, copyToBuffer, drop, dropRight, dropWhile, foreach, head, indexOf, indexWhere, init, last, mapI, newBuilder, span, splitAt, tail, take, takeRight, takeWhile, toArray, toByteBuffer, utf8String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.collection.immutable.IndexedSeq
companion, seq, toIndexedSeq
 
Methods inherited from interface scala.collection.immutable.Seq
parCombiner, toSeq
 
Methods inherited from interface scala.PartialFunction
andThen, applyOrElse, isDefinedAt, lift, orElse, runWith
 
Methods inherited from interface scala.Function1
andThen$mcDD$sp, andThen$mcDF$sp, andThen$mcDI$sp, andThen$mcDJ$sp, andThen$mcFD$sp, andThen$mcFF$sp, andThen$mcFI$sp, andThen$mcFJ$sp, andThen$mcID$sp, andThen$mcIF$sp, andThen$mcII$sp, andThen$mcIJ$sp, andThen$mcJD$sp, andThen$mcJF$sp, andThen$mcJI$sp, andThen$mcJJ$sp, andThen$mcVD$sp, andThen$mcVF$sp, andThen$mcVI$sp, andThen$mcVJ$sp, andThen$mcZD$sp, andThen$mcZF$sp, andThen$mcZI$sp, andThen$mcZJ$sp, apply, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, compose$mcDD$sp, compose$mcDF$sp, compose$mcDI$sp, compose$mcDJ$sp, compose$mcFD$sp, compose$mcFF$sp, compose$mcFI$sp, compose$mcFJ$sp, compose$mcID$sp, compose$mcIF$sp, compose$mcII$sp, compose$mcIJ$sp, compose$mcJD$sp, compose$mcJF$sp, compose$mcJI$sp, compose$mcJJ$sp, compose$mcVD$sp, compose$mcVF$sp, compose$mcVI$sp, compose$mcVJ$sp, compose$mcZD$sp, compose$mcZF$sp, compose$mcZI$sp, compose$mcZJ$sp, toString
 
Methods inherited from interface scala.collection.IndexedSeqLike
hashCode, thisCollection, toBuffer, toCollection
 
Methods inherited from interface scala.collection.SeqLike
$colon$plus, $plus$colon, combinations, contains, containsSlice, corresponds, diff, distinct, endsWith, indexOfSlice, indexOfSlice, indexWhere, indices, intersect, isEmpty, lastIndexOfSlice, lastIndexOfSlice, lastIndexWhere, lengthCompare, padTo, patch, permutations, reverse, reverseIterator, reverseMap, segmentLength, size, sortBy, sorted, sortWith, startsWith, toString, union, updated, view, view
 
Methods inherited from interface scala.collection.IterableLike
canEqual, exists, find, foldRight, forall, grouped, reduceRight, sameElements, sliding, sliding, toIterable, toIterator, toStream, zip, zipAll, zipWithIndex
 
Methods inherited from interface scala.collection.TraversableLike
$plus$plus, $plus$plus$colon, $plus$plus$colon, collect, filter, filterNot, flatMap, groupBy, hasDefiniteSize, headOption, inits, isTraversableAgain, lastOption, map, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, stringPrefix, tails, to, toTraversable, withFilter
 
Methods inherited from interface scala.collection.TraversableOnce
$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldLeft, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRightOption, reversed, sum, toList, toMap, toSet, toVector
 
Methods inherited from interface scala.collection.GenSeqLike
equals, indexOf, isDefinedAt, lastIndexOf, lastIndexOf, lastIndexWhere, prefixLength, startsWith
 
Methods inherited from interface scala.collection.GenTraversableOnce
$div$colon$bslash
 
Methods inherited from interface scala.collection.Parallelizable
par
 
Methods inherited from interface scala.collection.IndexedSeqOptimized
endsWith, exists, find, foldLeft, foldRight, forall, indexWhere, isEmpty, lastIndexWhere, lengthCompare, reduceLeft, reduceRight, reverse, reverseIterator, sameElements, scala$collection$IndexedSeqOptimized$$super$endsWith, scala$collection$IndexedSeqOptimized$$super$head, scala$collection$IndexedSeqOptimized$$super$init, scala$collection$IndexedSeqOptimized$$super$last, scala$collection$IndexedSeqOptimized$$super$reduceLeft, scala$collection$IndexedSeqOptimized$$super$reduceRight, scala$collection$IndexedSeqOptimized$$super$sameElements, scala$collection$IndexedSeqOptimized$$super$tail, scala$collection$IndexedSeqOptimized$$super$zip, segmentLength, startsWith, zip, zipWithIndex
 

Method Detail

apply

public byte apply(int idx)
Specified by:
apply in interface scala.collection.GenSeqLike<java.lang.Object,ByteString>
Specified by:
apply in interface scala.collection.SeqLike<java.lang.Object,ByteString>
Specified by:
apply in class ByteString

length

public int length()

iterator

public ByteIterator.ByteArrayIterator iterator()
Specified by:
iterator in interface scala.collection.GenIterableLike<java.lang.Object,ByteString>
Specified by:
iterator in interface scala.collection.IndexedSeqLike<java.lang.Object,ByteString>
Specified by:
iterator in interface scala.collection.IterableLike<java.lang.Object,ByteString>
Overrides:
iterator in class ByteString

asByteBuffer

public java.nio.ByteBuffer asByteBuffer()
Description copied from class: ByteString
Returns a read-only ByteBuffer that directly wraps this ByteString if it is not fragmented.

Specified by:
asByteBuffer in class ByteString

decodeString

public java.lang.String decodeString(java.lang.String charset)
Description copied from class: ByteString
Decodes this ByteString using a charset to produce a String.

Specified by:
decodeString in class ByteString

slice

public ByteString slice(int from,
                        int until)
Specified by:
slice in interface scala.collection.GenTraversableLike<java.lang.Object,ByteString>
Specified by:
slice in interface scala.collection.IndexedSeqOptimized<java.lang.Object,ByteString>
Specified by:
slice in interface scala.collection.IterableLike<java.lang.Object,ByteString>
Specified by:
slice in interface scala.collection.TraversableLike<java.lang.Object,ByteString>
Overrides:
slice in class ByteString