java/copy-image-resizer/src/cz/frantovo/copyImageResizer/NativeSingleImageResizer.java
author František Kučera <franta-hg@frantovo.cz>
Mon, 17 Nov 2014 21:59:20 +0100
changeset 17 505031965440
permissions -rw-r--r--
preparation for later support of NativeSingleImageResizer
franta-hg@17
     1
/**
franta-hg@17
     2
 * copy-image-resizer
franta-hg@17
     3
 * Copyright © 2014 František Kučera (frantovo.cz)
franta-hg@17
     4
 *
franta-hg@17
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@17
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@17
     7
 * the Free Software Foundation, either version 3 of the License, or
franta-hg@17
     8
 * (at your option) any later version.
franta-hg@17
     9
 *
franta-hg@17
    10
 * This program is distributed in the hope that it will be useful,
franta-hg@17
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@17
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@17
    13
 * GNU General Public License for more details.
franta-hg@17
    14
 *
franta-hg@17
    15
 * You should have received a copy of the GNU General Public License
franta-hg@17
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@17
    17
 */
franta-hg@17
    18
package cz.frantovo.copyImageResizer;
franta-hg@17
    19
franta-hg@17
    20
import java.io.InputStream;
franta-hg@17
    21
import java.io.OutputStream;
franta-hg@17
    22
franta-hg@17
    23
/**
franta-hg@17
    24
 *
franta-hg@17
    25
 * @author Ing. František Kučera (frantovo.cz)
franta-hg@17
    26
 */
franta-hg@17
    27
public class NativeSingleImageResizer implements SingleImageResizer{
franta-hg@17
    28
franta-hg@17
    29
	@Override
franta-hg@17
    30
	public boolean resize(InputStream input, OutputStream output, SizeSpecification size, JavaSingleImageResizer.ImageFormat outputFormat) throws ResizeException {
franta-hg@17
    31
		/**
franta-hg@17
    32
		 * TODO: call native tool like convert from ImageMagick
franta-hg@17
    33
		 */
franta-hg@17
    34
		throw new UnsupportedOperationException("Not implemented yet.");
franta-hg@17
    35
	}
franta-hg@17
    36
	
franta-hg@17
    37
	
franta-hg@17
    38
franta-hg@17
    39
}