Method startsWith(String prefix)
Return type: boolean
Member of:
java.lang.String
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if (fileRelPath.startsWith("/")) { // NOI18N
2
if (arg instanceof String && ((String) arg).startsWith("NODE_STATE"))
3
jdk14 = specVer!=null && specVer.startsWith("1.4"); //NOI18N
4
if ( (((String)RawSide.header.get(i)).toLowerCase()).startsWith("content-length:"))
5
if (!str.startsWith("/"))
6
else if (spec.startsWith( ".." )) return new URL( getNormalizedURL( getURLDirectory( base ) + spec ) );
7
if(contentType.startsWith("multipart/")) return new MultipartBody(this);
8
if (tagName.startsWith("/")) this.tagName = tagName;
9
addNew(classes, Import.forName((name.startsWith("$"))
10
if (str.startsWith(".")) {
11
if (contentType.startsWith("text"))
12
return url.startsWith("p6spy:") ? url.substring("p6spy:".length()) : null;
13
if (s.startsWith("entry") && s.indexOf("/") > -1)
14
if (!path.startsWith("/"))
15
isWin = osname.startsWith("Windows");
16
if (result.startsWith("\"")) result = result.substring(1, result.length());
17
if (path.startsWith("/") == false) path = "/" + path;
18
if (libPath.startsWith("$ws$")) //$NON-NLS-1$
19
if( path_str != null && path_str.startsWith( "/" ) )
20
if ( path.startsWith( "/" ) )
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.