wicket.contrib.tinymce.image
Class FileResourceStream

java.lang.Object
  extended by org.apache.wicket.util.resource.AbstractResourceStream
      extended by wicket.contrib.tinymce.image.FileResourceStream
All Implemented Interfaces:
Closeable, Serializable, IClusterable, IResourceStream, IModifiable

public class FileResourceStream
extends AbstractResourceStream

Resource stream for images.

Author:
Michal Letynski
See Also:
Serialized Form

Constructor Summary
FileResourceStream(String pContentType, InputStream pInputStream)
           
 
Method Summary
 void close()
          
 String getContentType()
           
 InputStream getInputStream()
          
 
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream
getLocale, getStyle, getVariation, lastModifiedTime, length, setLocale, setStyle, setVariation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileResourceStream

public FileResourceStream(String pContentType,
                          InputStream pInputStream)
Method Detail

getContentType

public String getContentType()
Specified by:
getContentType in interface IResourceStream
Overrides:
getContentType in class AbstractResourceStream

getInputStream

public InputStream getInputStream()
                           throws ResourceStreamNotFoundException

Throws:
ResourceStreamNotFoundException

close

public void close()
           throws IOException

Throws:
IOException


Copyright © 2004-2011. All Rights Reserved.