001 /*
002 * Apache License
003 * Version 2.0, January 2004
004 * http://www.apache.org/licenses/
005 *
006 * Copyright 2009 by chenillekit.org
007 *
008 * Licensed under the Apache License, Version 2.0 (the "License");
009 * you may not use this file except in compliance with the License.
010 * You may obtain a copy of the License at
011 *
012 * http://www.apache.org/licenses/LICENSE-2.0
013 */
014
015 package org.chenillekit.tapestry.core.utils;
016
017 import java.io.InputStream;
018
019 /**
020 * stolen from Tapestry wiki page.
021 *
022 * @version $Id: JPEGInline.java 471 2009-05-09 09:28:38Z homburgs $
023 */
024 public class JPEGInline extends InlineStreamResponse
025 {
026 public JPEGInline(InputStream is, String... args)
027 {
028 super(is, args);
029 this.contentType = "image/jpeg";
030 this.extension = "jpg";
031 }
032 }