com.ning.http.util
Class StringCharSequence

java.lang.Object
  extended by com.ning.http.util.StringCharSequence
All Implemented Interfaces:
CharSequence

public class StringCharSequence
extends Object
implements CharSequence

A CharSequence String wrapper that doesn't copy the char[] (damn new String implementation!!!)

Author:
slandelle

Field Summary
 int length
           
 
Constructor Summary
StringCharSequence(String value, int offset, int length)
           
 
Method Summary
 char charAt(int index)
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

length

public final int length
Constructor Detail

StringCharSequence

public StringCharSequence(String value,
                          int offset,
                          int length)
Method Detail

length

public int length()
Specified by:
length in interface CharSequence

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object


Copyright © 2014. All Rights Reserved.