API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.image. JOTAbstractImageWriterInterface View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

/*
------------------------------------
JavaOnTracks          Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
 */

package net.jot.image;


import java.io.OutputStream;

/**
 * Implement this to provide an implementation that writes the abstractImage in a particular format.
 * 
 * @author thibautc
 */
public interface JOTAbstractImageWriterInterface {
    /**
     * Writes the abstractImage to a file according to impl. format
     * returns data length
     * @param abstractImage
     * @param file
     * @throws java.lang.Exception
     */
    public int writeToStream(JOTAbstractImage abstractImage, OutputStream out) throws Exception;

    /**
     * Return the image content type (to be sent to the browser)
     * @return
     */
    public String getContentType();
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar