package Controllers;

import java.io.FileNotFoundException;
import java.io.InputStream;

public class Image
{
    private String filename;
    private int length;
    private InputStream content;
    
    public Image(String filename) throws FileNotFoundException
    {
        super();
        this.filename = filename;
    }
    public String getFilename()
    {
        return filename;
    }
    public void setFilename(String filename)
    {
        this.filename = filename;
    }
    public int getLength()
    {
        return length;
    }
    public void setLength(int length)
    {
        this.length = length;
    }
    public InputStream getContent()
    {
        return content;
    }
    public void setContent(InputStream content)
    {
        this.content = content;
    }
    
    
}

@@ -19,46 +19,8 @@
 s;%0A%0A
-import java.io.FileNotFoundException;%0A
 impo
@@ -110,22 +110,20 @@
 ate int 
-length
+size
 ;%0A    pr
@@ -149,20 +149,16 @@
 ontent;%0A
-    
 %0A    pub
@@ -186,38 +186,40 @@
 name
-) throws FileNotFoundException
+, InputStream content, int size)
 %0A   
@@ -252,32 +252,34 @@
   this.filename 
+  
 = filename;%0A    
@@ -266,38 +266,106 @@
 e   = filename;%0A
+        this.content    = content;%0A        this.size       = size;%0A
     %7D%0A
+%0A
     public Strin
@@ -409,32 +409,33 @@
 filename;%0A    %7D%0A
+%0A
     public void 
@@ -501,32 +501,33 @@
 filename;%0A    %7D%0A
+%0A
     public int g
@@ -528,22 +528,20 @@
  int get
-Length
+Size
 ()%0A    %7B
@@ -556,30 +556,28 @@
  return 
-length
+size
 ;%0A    %7D%0A
     publ
@@ -560,32 +560,33 @@
 urn size;%0A    %7D%0A
+%0A
     public void 
@@ -589,28 +589,24 @@
 oid 
-setLength(int length
+getSize(int size
 )%0A  
@@ -626,31 +626,27 @@
 his.
-length = length
+size = size
 ;%0A    %7D%0A
     
@@ -633,32 +633,33 @@
 e = size;%0A    %7D%0A
+%0A
     public Input
@@ -710,24 +710,25 @@
 tent;%0A    %7D%0A
+%0A
     public v
@@ -811,16 +811,6 @@
   %7D%0A
-    %0A    %0A
 %7D%0A

Rename length to size