PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/sigmah/src/test/java/org/sigmah/server/report/NullImageStorageProvider.java

http://sigma-h.googlecode.com/
Java | 27 lines | 15 code | 7 blank | 5 comment | 0 complexity | e88d6068a8c1cc6e40b80c4f16854b88 MD5 | raw file
 1/*
 2 * All Sigmah code is released under the GNU General Public License v3
 3 * See COPYRIGHT.txt and LICENSE.txt.
 4 */
 5
 6package org.sigmah.server.report;
 7
 8import org.sigmah.server.report.renderer.html.ImageStorage;
 9import org.sigmah.server.report.renderer.html.ImageStorageProvider;
10
11import java.io.IOException;
12import java.io.OutputStream;
13
14public class NullImageStorageProvider implements ImageStorageProvider {
15
16	@Override
17	public ImageStorage getImageUrl(String suffix) throws IOException {
18		
19		return new ImageStorage("http://", new OutputStream() {
20
21			@Override
22			public void write(int b) throws IOException {
23				// NOOOP!
24			}
25		});
26	}
27}