public class Scheme extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int[] |
bf
Bit field used to identify valid first/follow characters.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Scheme()
Disable instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getScheme(java.lang.String uri)
Returns a scheme if the given string has a valid scheme at the beginning
of null if no scheme was found.
|
static boolean |
startsWithScheme(byte[] bytes)
Returns true if the start of the array is a valid scheme.
|
protected static int[] bf
protected Scheme()
public static boolean startsWithScheme(byte[] bytes)
bytes - byte array in which to look for a valid scheme at the beginningpublic static java.lang.String getScheme(java.lang.String uri)
uri - a possible URI stringCopyright © 2011–2023. All rights reserved.