diff --git a/core/src/net/sf/openrocket/appearance/DecalImage.java b/core/src/net/sf/openrocket/appearance/DecalImage.java index 3761242cd..3b56903aa 100644 --- a/core/src/net/sf/openrocket/appearance/DecalImage.java +++ b/core/src/net/sf/openrocket/appearance/DecalImage.java @@ -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; } diff --git a/core/src/net/sf/openrocket/document/Attachment.java b/core/src/net/sf/openrocket/document/Attachment.java new file mode 100644 index 000000000..50e96de55 --- /dev/null +++ b/core/src/net/sf/openrocket/document/Attachment.java @@ -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; + +} \ No newline at end of file