本文整理了Java中java.util.zip.ZipEntry.toString()
方法的一些代码示例,展示了ZipEntry.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipEntry.toString()
方法的具体详情如下:
包路径:java.util.zip.ZipEntry
类名称:ZipEntry
方法名:toString
[英]Returns the string representation of this ZipEntry.
[中]返回此ZipEntry的字符串表示形式。
代码示例来源:origin: ronmamo/reflections
@Override
public String toString() {
return root.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: org.reflections/reflections
@Override
public String toString() {
return root.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: google/j2objc
log("ignoring " + entry.toString());
代码示例来源:origin: org.easymock/easymock
log("ignoring " + entry.toString());
代码示例来源:origin: cglib/cglib
log("ignoring " + entry.toString());
代码示例来源:origin: cglib/cglib
log("ignoring " + entry.toString());
代码示例来源:origin: RaiMan/SikuliX2
ZipEntry entry = jarZip.getNextEntry();
while (entry != null) {
if (resource.equals(entry.toString())) {
found = true;
break;
代码示例来源:origin: com.dyuproject.jetg/jetg
@Override
public String toString() {
return entry.toString();
}
}
代码示例来源:origin: subchen/jetbrick-template-1x
@Override
public String toString() {
return entry.toString();
}
}
代码示例来源:origin: org.apache.bcel/bcel
@Override
public String getPath() {
return entry.toString();
}
代码示例来源:origin: webanno/webanno
static String normalizeEntryName(ZipEntry aEntry)
{
// Strip leading "/" that we had in ZIP files prior to 2.0.8 (bug #985)
String entryName = aEntry.toString();
if (entryName.startsWith("/")) {
entryName = entryName.substring(1);
}
return entryName;
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/de.tudarmstadt.ukp.clarin.webanno.brat
private static String normalizeEntryName(ZipEntry aEntry)
{
// Strip leading "/" that we had in ZIP files prior to 2.0.8 (bug #985)
String entryName = aEntry.toString();
if (entryName.startsWith("/")) {
entryName = entryName.substring(1);
}
return entryName;
}
}
代码示例来源:origin: de.tudarmstadt.ukp.clarin.webanno/webanno-api
static String normalizeEntryName(ZipEntry aEntry)
{
// Strip leading "/" that we had in ZIP files prior to 2.0.8 (bug #985)
String entryName = aEntry.toString();
if (entryName.startsWith("/")) {
entryName = entryName.substring(1);
}
return entryName;
}
代码示例来源:origin: stackoverflow.com
String path="C:/Users/hussain.wahid/Desktop/hussain back up/Hussain/Eclipse WorkSpace/SO/poi.jar";
path=path.replace("\\","/");
JarFile jar=new JarFile(path);
ArrayList<String> fileNameList = new ArrayList<String>();
Enumeration<JarEntry> myEntry = jar.entries();
while(myEntry.hasMoreElements())
{
//System.out.println(myEntry.nextElement().toString());
fileNameList.add(myEntry.nextElement().toString());
}
System.out.println(fileNameList.contains("com/sun/xml/ws/binding/Bind.class"));
//org/apache/poi/hssf/record/aggregates/
代码示例来源:origin: net.oneandone.reflections8/reflections8
@Override
public String toString() {
return root.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: errai/errai
@Override
public String toString() {
return dir.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: org.rapidpm/rapidpm-dependencies-core-reflections
@Override
public String toString() {
return root.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.reflections
@Override
public String toString() {
return root.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
代码示例来源:origin: edu.washington.cs.dt/dtdetector
public static Collection<String> getContentsAsStr(File f) throws ZipException, IOException {
Collection<ZipEntry> entries = getContents(f);
Collection<String> strs = new LinkedHashSet<String>();
for(ZipEntry e : entries) {
strs.add(e.toString());
}
return strs;
}
代码示例来源:origin: ai.h2o/reflections
@Override
public String toString() {
return root.getPath() + "!" + java.io.File.separatorChar + entry.toString();
}
}
内容来源于网络,如有侵权,请联系作者删除!