Project

General

Profile

« Previous | Next » 

Revision 37d78849

Added by Niels Hoffmann almost 13 years ago

corrected indentation

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/mediaMetaData/ImageMetaData.java
13 13
import java.io.IOException;
14 14
import java.io.InputStream;
15 15
import java.net.URI;
16
import java.net.URL;
17
import java.net.URLConnection;
18 16
import java.util.HashMap;
19 17

  
20 18
import org.apache.http.HttpException;
......
35 33
 */
36 34
public  class ImageMetaData extends MediaMetaData {
37 35
	private static Logger logger = Logger.getLogger(ImageMetaData.class);
38
		protected ImageMetaData(){
39
			this.metaData = new HashMap<String, String>();
40
		}
41
		
42
		protected int width, height, bitPerPixel;
43
		
44
		public int getWidth() {
45
			return width;
46
		}
36
	
37
	protected ImageMetaData(){
38
		this.metaData = new HashMap<String, String>();
39
	}
40
	
41
	protected int width, height, bitPerPixel;
42
	
43
	public int getWidth() {
44
		return width;
45
	}
47 46

  
48
		public void setWidth(int width) {
49
			this.width = width;
50
		}
47
	public void setWidth(int width) {
48
		this.width = width;
49
	}
51 50

  
52
		public int getHeight() {
53
			return height;
54
		}
51
	public int getHeight() {
52
		return height;
53
	}
55 54

  
56
		public void setHeight(int height) {
57
			this.height = height;
58
		}
55
	public void setHeight(int height) {
56
		this.height = height;
57
	}
59 58

  
60
		public int getBitPerPixel() {
61
			return bitPerPixel;
62
		}
59
	public int getBitPerPixel() {
60
		return bitPerPixel;
61
	}
63 62

  
64
		public void setBitPerPixel(int bitPerPixel) {
65
			this.bitPerPixel = bitPerPixel;
66
		}
63
	public void setBitPerPixel(int bitPerPixel) {
64
		this.bitPerPixel = bitPerPixel;
65
	}
67 66

  
68
		public String getFormatName() {
69
			return formatName;
70
		}
67
	public String getFormatName() {
68
		return formatName;
69
	}
71 70

  
72
		public void setFormatName(String formatName) {
73
			this.formatName = formatName;
74
		}
71
	public void setFormatName(String formatName) {
72
		this.formatName = formatName;
73
	}
75 74

  
76
		public String getMimeType() {
77
			return mimeType;
78
		}
75
	public String getMimeType() {
76
		return mimeType;
77
	}
79 78

  
80
		public void setMimeType(String mimeType) {
81
			this.mimeType = mimeType;
82
		}
79
	public void setMimeType(String mimeType) {
80
		this.mimeType = mimeType;
81
	}
83 82

  
84
		@Override
85
		public String toString(){
86
            return formatName + " [" + mimeType+ "] w:" + width + " h:" + height + " depth:" + bitPerPixel;
87
		}
88
		
89
		
90
		
83
	@Override
84
	public String toString(){
85
        return formatName + " [" + mimeType+ "] w:" + width + " h:" + height + " depth:" + bitPerPixel;
86
	}
91 87
	
92 88
	
93 89
	private  void readImageInfo(ImageInfo imageInfo) {
......
99 95
		
100 96
	}
101 97
	
102
		
103 98

  
104 99
	public void readImageInfo(URI imageUri, Integer timeOut) throws IOException, HttpException{
105 100
		

Also available in: Unified diff