}
protected InputStream createStream() throws CoreException {
InputStream stream = JdtUtils.createInputStream(element);
if (stream == null) {
throw new CoreException(new Status(
IStatus.ERROR, "de.loskutov.bco", -1,
"cannot get bytecode from class file", null));
}
DecompiledClass decompiledClass = null;
try {
decompiledClass = DecompilerClassVisitor.getDecompiledClass(
stream, null, methodName, modes, null);
} catch (IOException e) {
throw new CoreException(new Status(
IStatus.ERROR, "de.loskutov.bco", -1,
"cannot get bytecode dump", e));
} catch (UnsupportedClassVersionError e){
throw new CoreException(new Status(
IStatus.ERROR, "de.loskutov.bco", -1,
"Error caused by attempt to load class compiled with Java version which"
+ " is not supported by current JVM", e));
} finally {
try {