本文整理了Java中org.apache.commons.httpclient.URI.indexFirstOf()
方法的一些代码示例,展示了URI.indexFirstOf()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。URI.indexFirstOf()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.URI
类名称:URI
方法名:indexFirstOf
[英]Get the earlier index that to be searched for the first occurrance in one of any of the given string.
[中]获取任何给定字符串中第一次出现的要搜索的较早索引。
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given array.
*
* @param s the character array to be indexed
* @param delim the delimiter used to index
* @return the ealier index if there are a delimiter
*/
protected int indexFirstOf(char[] s, char delim) {
return indexFirstOf(s, delim, 0);
}
代码示例来源:origin: commons-httpclient/commons-httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given string.
*
* @param s the string to be indexed
* @param delims the delimiters used to index
* @return the earlier index if there are delimiters
*/
protected int indexFirstOf(String s, String delims) {
return indexFirstOf(s, delims, -1);
}
代码示例来源:origin: commons-httpclient/commons-httpclient
int at = indexFirstOf(tmp, isStartedFromPath ? "/?#" : ":/?#", from);
if (at == -1) {
at = 0;
&& !isStartedFromPath) {
int next = indexFirstOf(tmp, "/?#", at + 2);
if (next == -1) {
next = (tmp.substring(at + 2).length() == 0) ? at + 2
int next = indexFirstOf(tmp, "?#", from);
if (next == -1) {
next = tmp.length();
代码示例来源:origin: commons-httpclient/commons-httpclient
int at = indexFirstOf(escapedPath, '/');
if (at == 0) {
throw new URIException(URIException.PARSING, "incorrect path");
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given array.
*
* @param s the character array to be indexed
* @param delim the delimiter used to index
* @return the ealier index if there are a delimiter
*/
protected int indexFirstOf(char[] s, char delim) {
return indexFirstOf(s, delim, 0);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given array.
*
* @param s the character array to be indexed
* @param delim the delimiter used to index
* @return the ealier index if there are a delimiter
*/
protected int indexFirstOf(char[] s, char delim) {
return indexFirstOf(s, delim, 0);
}
代码示例来源:origin: org.zaproxy/zap
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given array.
*
* @param s the character array to be indexed
* @param delim the delimiter used to index
* @return the ealier index if there are a delimiter
*/
protected int indexFirstOf(char[] s, char delim) {
return indexFirstOf(s, delim, 0);
}
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given string.
*
* @param s the string to be indexed
* @param delims the delimiters used to index
* @return the earlier index if there are delimiters
*/
protected int indexFirstOf(String s, String delims) {
return indexFirstOf(s, delims, -1);
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given string.
*
* @param s the string to be indexed
* @param delims the delimiters used to index
* @return the earlier index if there are delimiters
*/
protected int indexFirstOf(String s, String delims) {
return indexFirstOf(s, delims, -1);
}
代码示例来源:origin: org.apache.commons/httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given array.
*
* @param s the character array to be indexed
* @param delim the delimiter used to index
* @return the ealier index if there are a delimiter
*/
protected int indexFirstOf(char[] s, char delim) {
return indexFirstOf(s, delim, 0);
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given string.
*
* @param s the string to be indexed
* @param delims the delimiters used to index
* @return the earlier index if there are delimiters
*/
protected int indexFirstOf(String s, String delims) {
return indexFirstOf(s, delims, -1);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given string.
*
* @param s the string to be indexed
* @param delims the delimiters used to index
* @return the earlier index if there are delimiters
*/
protected int indexFirstOf(String s, String delims) {
return indexFirstOf(s, delims, -1);
}
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given array.
*
* @param s the character array to be indexed
* @param delim the delimiter used to index
* @return the ealier index if there are a delimiter
*/
protected int indexFirstOf(char[] s, char delim) {
return indexFirstOf(s, delim, 0);
}
代码示例来源:origin: org.zaproxy/zap
/**
* Get the earlier index that to be searched for the first occurrance in
* one of any of the given string.
*
* @param s the string to be indexed
* @param delims the delimiters used to index
* @return the earlier index if there are delimiters
*/
protected int indexFirstOf(String s, String delims) {
return indexFirstOf(s, delims, -1);
}
代码示例来源:origin: org.apache.commons/httpclient
int at = indexFirstOf(tmp, isStartedFromPath ? "/?#" : ":/?#", from);
if (at == -1) {
at = 0;
&& !isStartedFromPath) {
int next = indexFirstOf(tmp, "/?#", at + 2);
if (next == -1) {
next = (tmp.substring(at + 2).length() == 0) ? at + 2
int next = indexFirstOf(tmp, "?#", from);
if (next == -1) {
next = tmp.length();
代码示例来源:origin: org.wso2.commons-httpclient/commons-httpclient
int at = indexFirstOf(escapedPath, '/');
if (at == 0) {
throw new URIException(URIException.PARSING, "incorrect path");
代码示例来源:origin: org.apache.commons/com.springsource.org.apache.commons.httpclient
int at = indexFirstOf(escapedPath, '/');
if (at == 0) {
throw new URIException(URIException.PARSING, "incorrect path");
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-httpclient
int at = indexFirstOf(escapedPath, '/');
if (at == 0) {
throw new URIException(URIException.PARSING, "incorrect path");
代码示例来源:origin: org.apache.commons/httpclient
int at = indexFirstOf(escapedPath, '/');
if (at == 0) {
throw new URIException(URIException.PARSING, "incorrect path");
代码示例来源:origin: org.zaproxy/zap
int at = indexFirstOf(escapedPath, '/');
if (at == 0) {
throw new URIException(URIException.PARSING, "incorrect path");
内容来源于网络,如有侵权,请联系作者删除!