1 package org.simantics.graph.compiler.internal.ltk;
3 import java.io.IOException;
4 import java.io.InputStream;
6 public class LocalResourceSource implements ISource {
10 public LocalResourceSource(Class<?> clazz, String resource) {
12 this.resource = resource;
16 public InputStream open() throws IOException {
17 return clazz.getResourceAsStream(resource);
21 public String getName() {
26 public int length() throws IOException {
31 public int startPos() {
36 public int startLine() {