Extract the Attachment interface from the DecalImage.

This commit is contained in:
kruland2607 2013-01-07 22:12:18 -06:00
parent acba62ce59
commit 6ff17d04e2
2 changed files with 16 additions and 5 deletions

View File

@ -1,14 +1,12 @@
package net.sf.openrocket.appearance;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
public interface DecalImage {
import net.sf.openrocket.document.Attachment;
public interface DecalImage extends Attachment {
public String getName();
public InputStream getBytes() throws FileNotFoundException, IOException;
public void exportImage( File file, boolean watchForChanges ) throws IOException;
}

View File

@ -0,0 +1,13 @@
package net.sf.openrocket.document;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
public interface Attachment {
public abstract String getName();
public abstract InputStream getBytes() throws FileNotFoundException, IOException;
}