Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2016-03-24 10:24:12 +0000
committerJay Arthanareeswaran2016-03-28 06:10:37 +0000
commit85bb2bb3fe93272d2325e162f20a23c1dd498855 (patch)
treed3810ae9913e392d68eb60a89eba715b337a00f5 /org.eclipse.jdt.compiler.apt
parent88990523833d1a48a3fb93f8126737360efa4666 (diff)
downloadeclipse.jdt.core-85bb2bb3fe93272d2325e162f20a23c1dd498855.tar.gz
eclipse.jdt.core-85bb2bb3fe93272d2325e162f20a23c1dd498855.tar.xz
eclipse.jdt.core-85bb2bb3fe93272d2325e162f20a23c1dd498855.zip
Diffstat (limited to 'org.eclipse.jdt.compiler.apt')
-rw-r--r--org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java (renamed from org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/Jimage.java)22
1 files changed, 11 insertions, 11 deletions
diff --git a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/Jimage.java b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java
index 5a0e3e201a..9c8b866131 100644
--- a/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/Jimage.java
+++ b/org.eclipse.jdt.compiler.apt/src/org/eclipse/jdt/internal/compiler/apt/util/JrtFileSystem.java
@@ -41,11 +41,11 @@ import org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader;
import org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException;
import org.eclipse.jdt.internal.compiler.env.IModule;
-public class Jimage extends Archive {
+public class JrtFileSystem extends Archive {
private static URI JRT_URI = URI.create("jrt:/"); //$NON-NLS-1$
- private static final String BOOT_MODULE = "bootmodules.jimage"; //$NON-NLS-1$
+ private static final String BOOT_MODULE = "jrt-fs.jar"; //$NON-NLS-1$
private static final String MODULES_SUBDIR = "/modules"; //$NON-NLS-1$
@@ -53,7 +53,7 @@ public class Jimage extends Archive {
private Set<String> typesCache = null;
- public Jimage(File file) throws ZipException, IOException {
+ public JrtFileSystem(File file) throws ZipException, IOException {
this.file = file;
initialize();
}
@@ -111,7 +111,7 @@ public class Jimage extends Archive {
}
public ArchiveFileObject getArchiveFileObject(String fileName, Charset charset) {
- return new JimageFileObject(this.file, fileName, null, charset);
+ return new JrtFileObject(this.file, fileName, null, charset);
}
@Override
@@ -150,12 +150,12 @@ public class Jimage extends Archive {
@Override
public String toString() {
- return "Jimage: " + (this.file == null ? "UNKNOWN_ARCHIVE" : this.file.getAbsolutePath()); //$NON-NLS-1$ //$NON-NLS-2$
+ return "JRT: " + (this.file == null ? "UNKNOWN_ARCHIVE" : this.file.getAbsolutePath()); //$NON-NLS-1$ //$NON-NLS-2$
}
- class JimageFileObject extends ArchiveFileObject {
+ class JrtFileObject extends ArchiveFileObject {
IModule module = null;
- private JimageFileObject(File file, String fileName, IModule module, Charset charset) {
+ private JrtFileObject(File file, String fileName, IModule module, Charset charset) {
super(file, fileName, charset);
this.module = module;
}
@@ -169,7 +169,7 @@ public class Jimage extends Archive {
protected ClassFileReader getClassReader() {
ClassFileReader reader = null;
try {
- reader = ClassFileReader.readFromJimage(this.file, this.entryName, this.module);
+ reader = ClassFileReader.readFromJrt(this.file, this.entryName, this.module);
} catch (ClassFormatException e) {
e.printStackTrace();
} catch (IOException e) {
@@ -186,7 +186,7 @@ public class Jimage extends Archive {
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException {
try {
return Util.getCharContents(this, ignoreEncodingErrors,
- org.eclipse.jdt.internal.compiler.util.JimageUtil.getClassfileContent(this.file, this.entryName, new String(this.module.name())),
+ org.eclipse.jdt.internal.compiler.util.JRTUtil.getClassfileContent(this.file, this.entryName, new String(this.module.name())),
this.charset.name());
} catch (ClassFormatException e) {
e.printStackTrace();
@@ -215,7 +215,7 @@ public class Jimage extends Archive {
*/
@Override
public InputStream openInputStream() throws IOException {
- return org.eclipse.jdt.internal.compiler.util.JimageUtil.getContentFromJimage(this.file, this.entryName, null);
+ return org.eclipse.jdt.internal.compiler.util.JRTUtil.getContentFromJrt(this.file, this.entryName, null);
}
/* (non-Javadoc)
@@ -248,7 +248,7 @@ public class Jimage extends Archive {
@Override
public URI toUri() {
try {
- return new URI("jimage:" + this.file.toURI().getPath() + "!" + this.entryName); //$NON-NLS-1$//$NON-NLS-2$
+ return new URI("JRT:" + this.file.toURI().getPath() + "!" + this.entryName); //$NON-NLS-1$//$NON-NLS-2$
} catch (URISyntaxException e) {
return null;
}

Back to the top