List of usage examples for java.lang String startsWith
public boolean startsWith(String prefix)
From source file:Main.java
private static boolean isWrapped(String s) { return s.startsWith("(") && s.endsWith(")"); }
From source file:Main.java
public static boolean hasXMLDeclaration(String out) { return out.startsWith("<?xml "); }
From source file:Main.java
public static boolean isRemote(String uri) { return uri.startsWith("http://") || uri.startsWith("https://"); }
From source file:Main.java
public static boolean isStartWithHttp(String str) { return str.startsWith("http://") || str.startsWith("https://"); }
From source file:Main.java
public static boolean isEntry(String uid) { return uid.startsWith(PREFIX_ENTRY); }
From source file:Main.java
public static boolean isSubscription(String uid) { return uid.startsWith(PREFIX_SUB); }
From source file:Main.java
public static boolean isCategory(String uid) { return uid.startsWith(PREFIX_CAT); }
From source file:Main.java
public static boolean isUriALocalFilePath(String uri) { if (uri.startsWith("/")) { return true; }/*from w w w .j ava2 s. co m*/ return false; }
From source file:Main.java
public static String stripPrefix(String value) { if (value.startsWith("0x")) return value.substring(2); return value; }
From source file:Main.java
public static String checkUrlPre(String url) { if (!url.startsWith("http")) { url = "http://" + url; }//w w w .j a va2s .c o m return url; }