1 package org.simantics.ltk;
3 import java.io.IOException;
4 import java.io.InputStream;
6 public class SourcePart implements ISource {
7 ISource originalSource;
11 public SourcePart(ISource originalSource, int startPos, int startLine) {
12 this.originalSource = originalSource;
13 this.startPos = startPos;
14 this.startLine = startLine;
18 public String getName() {
19 return originalSource.getName();
23 public InputStream open() throws IOException {
24 throw new UnsupportedOperationException();
28 public int length() throws IOException {
29 throw new UnsupportedOperationException();
33 public int startPos() {
38 public int startLine() {
42 public ISource getOriginalSource() {
43 return originalSource;