This commit is contained in:
peterdell 2018-12-30 15:47:13 +01:00
commit 8134a83abf
8 changed files with 61 additions and 0 deletions

11
Test-Java/.classpath Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="lib/commons-compress-1.15.jar" sourcepath="lib/commons-compress-1.15-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:platform:/resource/Test-Java/lib/commons-compress-1.15-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_144"/>
<classpathentry kind="output" path="bin"/>
</classpath>

1
Test-Java/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/bin

17
Test-Java/.project Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Test-Java</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@ -0,0 +1,11 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6

Binary file not shown.

Binary file not shown.

Binary file not shown.

21
Test-Java/src/Main.java Normal file
View File

@ -0,0 +1,21 @@
import java.io.File;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import org.apache.commons.compress.archivers.zip.*;
public class Main {
public static void main(String[] args) throws Exception {
String file = "C:\\Users\\D025328\\Documents\\Eclipse\\workspace.jac\\com.wudsn.site\\site\\productions\\atari800\\thecartstudio\\thecartstudio.zip";
System.out.println(file);
ZipFile zipFile=new ZipFile(new File(file));
ZipEntry entry=zipFile.getEntry("TheCartStudio.jar");
System.out.println(entry+":"+ entry.getSize());
ZipArchiveEntry archiveEntry=new ZipArchiveEntry(entry);
System.out.println(archiveEntry+":"+ archiveEntry.getUnixMode());
zipFile.close();
}
}