1 11 package org.eclipse.core.runtime.adaptor; 12 13 import java.io.*; 14 15 23 public class StreamManagerOutputStream extends FilterOutputStream { 24 private String target; 25 private StreamManager manager; 26 private File outputFile; 27 private int state; 28 private StreamManagerOutputStream[] streamSet = null; 29 30 StreamManagerOutputStream(OutputStream out, StreamManager manager, String target, File outputFile, int state) { 31 super(out); 32 this.manager = manager; 33 this.target = target; 34 this.outputFile = outputFile; 35 this.state = state; 36 } 37 38 45 public void close() throws IOException { 46 manager.closeOutputStream(this); 47 } 48 49 54 public void abort() { 55 manager.abortOutputStream(this); 56 } 57 58 OutputStream getOutputStream() { 59 return out; 60 } 61 62 String getTarget() { 63 return target; 64 } 65 66 File getOutputFile() { 67 return outputFile; 68 } 69 70 int getState() { 71 return state; 72 } 73 74 void setState(int state) { 75 this.state = state; 76 } 77 78 void setStreamSet(StreamManagerOutputStream[] set) { 79 streamSet = set; 80 } 81 82 StreamManagerOutputStream[] getStreamSet() { 83 return streamSet; 84 } 85 } 86 | Popular Tags |