English | Site Directory

Android - An Open Handset Alliance Project

android.util
public class

android.util.CharSequences

java.lang.Object
android.util.CharSequences

CharSequence utility methods.

Summary

Public Constructors

          CharSequences()

Public Methods

      static  boolean  equals(CharSequence a, CharSequence b)
Compares two character sequences for equality.
      static  CharSequence  forAsciiBytes(byte[] bytes, int start, int end)
Adapts CharSequence to an array of ASCII (7-bits per character) bytes.
      static  CharSequence  forAsciiBytes(byte[] bytes)
Adapts CharSequence to an array of ASCII (7-bits per character) bytes.
Methods inherited from class java.lang.Object

Details

Public Constructors

public CharSequences()

Public Methods

public static boolean equals(CharSequence a, CharSequence b)

Compares two character sequences for equality.

public static CharSequence forAsciiBytes(byte[] bytes, int start, int end)

Adapts CharSequence to an array of ASCII (7-bits per character) bytes.

Parameters

bytes ASCII bytes
start index, inclusive
end index, exclusive

Throws

IndexOutOfBoundsException if start or end are negative, if end is greater than length(), or if start is greater than end

public static CharSequence forAsciiBytes(byte[] bytes)

Adapts CharSequence to an array of ASCII (7-bits per character) bytes.

Parameters

bytes ASCII bytes
Build m5-rc15i - 10 Jun 2008 13:54