本文整理了Java中org.eclipse.core.runtime.Path.computeLength()
方法的一些代码示例,展示了Path.computeLength()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.computeLength()
方法的具体详情如下:
包路径:org.eclipse.core.runtime.Path
类名称:Path
方法名:computeLength
暂无
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.equinox.common
public String toString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.common
@Override
public String toPortableString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
StringBuffer result = new StringBuffer(resultSize);
if (device != null)
result.append(device);
if ((flags & HAS_LEADING) != 0)
result.append(SEPARATOR);
if ((flags & IS_UNC) != 0)
result.append(SEPARATOR);
int len = segments.length;
//append all segments with separators
for (int i = 0; i < len; i++) {
if (segments[i].indexOf(DEVICE_SEPARATOR) >= 0)
encodeSegment(segments[i], result);
else
result.append(segments[i]);
if (i < len - 1 || (flags & HAS_TRAILING) != 0)
result.append(SEPARATOR);
}
return result.toString();
}
代码示例来源:origin: org.eclipse.equinox/common
public String toPortableString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
StringBuffer result = new StringBuffer(resultSize);
if (device != null)
result.append(device);
if ((separators & HAS_LEADING) != 0)
result.append(SEPARATOR);
if ((separators & IS_UNC) != 0)
result.append(SEPARATOR);
int len = segments.length;
//append all segments with separators
for (int i = 0; i < len; i++) {
if (segments[i].indexOf(DEVICE_SEPARATOR) >= 0)
encodeSegment(segments[i], result);
else
result.append(segments[i]);
if (i < len - 1 || (separators & HAS_TRAILING) != 0)
result.append(SEPARATOR);
}
return result.toString();
}
代码示例来源:origin: org.eclipse.equinox/common
public String toString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.equinox.common
public String toPortableString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
StringBuffer result = new StringBuffer(resultSize);
if (device != null)
result.append(device);
if ((separators & HAS_LEADING) != 0)
result.append(SEPARATOR);
if ((separators & IS_UNC) != 0)
result.append(SEPARATOR);
int len = segments.length;
//append all segments with separators
for (int i = 0; i < len; i++) {
if (segments[i].indexOf(DEVICE_SEPARATOR) >= 0)
encodeSegment(segments[i], result);
else
result.append(segments[i]);
if (i < len - 1 || (separators & HAS_TRAILING) != 0)
result.append(SEPARATOR);
}
return result.toString();
}
代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.common
@Override
public String toString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.equinox.common
@Override
public String toPortableString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
StringBuffer result = new StringBuffer(resultSize);
if (device != null)
result.append(device);
if ((flags & HAS_LEADING) != 0)
result.append(SEPARATOR);
if ((flags & IS_UNC) != 0)
result.append(SEPARATOR);
int len = segments.length;
//append all segments with separators
for (int i = 0; i < len; i++) {
if (segments[i].indexOf(DEVICE_SEPARATOR) >= 0)
encodeSegment(segments[i], result);
else
result.append(segments[i]);
if (i < len - 1 || (flags & HAS_TRAILING) != 0)
result.append(SEPARATOR);
}
return result.toString();
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.equinox.common
@Override
public String toString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: org.eclipse.equinox/common
public String toOSString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.equinox.common
public String toOSString() {
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.common
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.equinox.common
int resultSize = computeLength();
if (resultSize <= 0)
return EMPTY_STRING;
内容来源于网络,如有侵权,请联系作者删除!