com.mchange.v2.ssim.SingleUseImageData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ssim Show documentation
Show all versions of ssim Show documentation
a library for on-the-fly rescaling & caching of images on a web server
The newest version!
/*
* Distributed as part of ssim v.0.6.0
*
* Copyright (C) 2005 Machinery For Change, Inc.
*
* Author: Steve Waldman
*
* This package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2, as
* published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file LICENSE. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
package com.mchange.v2.ssim;
import java.io.*;
public final class SingleUseImageData extends AbstractImageData
{
InputStream stream;
public SingleUseImageData(String mimeType, InputStream stream, long timestamp, int content_length, int width, int height)
{
super( mimeType, timestamp, content_length, width, height );
this.stream = stream;
}
public InputStream getInputStream() throws IOException
{ return stream; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy