|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.os.PatternMatcher
public class PatternMatcher
A simple pattern matcher, which is safe to use on untrusted data: it does not provide full reg-exp support, only simple globbing that can not be used maliciously.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.os.Parcelable |
|---|
Parcelable.Creator<T> |
| Field Summary | |
|---|---|
static Parcelable.Creator<PatternMatcher> |
CREATOR
|
static int |
PATTERN_LITERAL
Pattern type: the given pattern must exactly match the string it is tested against. |
static int |
PATTERN_PREFIX
Pattern type: the given pattern must match the beginning of the string it is tested against. |
static int |
PATTERN_SIMPLE_GLOB
Pattern type: the given pattern is interpreted with a simple glob syntax for matching against the string it is tested against. |
| Fields inherited from interface android.os.Parcelable |
|---|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE |
| Constructor Summary | |
|---|---|
PatternMatcher(Parcel src)
|
|
PatternMatcher(String pattern,
int type)
|
|
| Method Summary | |
|---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation. |
String |
getPath()
|
int |
getType()
|
boolean |
match(String str)
|
(package private) static boolean |
matchPattern(String pattern,
String match,
int type)
|
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PATTERN_LITERAL
public static final int PATTERN_PREFIX
public static final int PATTERN_SIMPLE_GLOB
public static final Parcelable.Creator<PatternMatcher> CREATOR
| Constructor Detail |
|---|
public PatternMatcher(String pattern,
int type)
public PatternMatcher(Parcel src)
| Method Detail |
|---|
public final String getPath()
public final int getType()
public boolean match(String str)
public String toString()
Object
toString in class Objectpublic int describeContents()
Parcelable
describeContents in interface Parcelable
public void writeToParcel(Parcel dest,
int flags)
Parcelable
writeToParcel in interface Parcelabledest - The Parcel in which the object should be written.flags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
static boolean matchPattern(String pattern,
String match,
int type)
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||