Extract the Attachment interface from the DecalImage.
This commit is contained in:
		
							parent
							
								
									acba62ce59
								
							
						
					
					
						commit
						6ff17d04e2
					
				@ -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;
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										13
									
								
								core/src/net/sf/openrocket/document/Attachment.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								core/src/net/sf/openrocket/document/Attachment.java
									
									
									
									
									
										Normal 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;
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user