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, org.apache.wicket.IClusterable, org.apache.wicket.util.resource.IResourceStream, org.apache.wicket.util.resource.IStringResourceStream, org.apache.wicket.util.watch.IModifiable

public class FileResourceStream
extends org.apache.wicket.util.resource.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
asString, getCharset, getLocale, lastModifiedTime, length, setCharset, setLocale
 
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 org.apache.wicket.util.resource.IResourceStream
Overrides:
getContentType in class org.apache.wicket.util.resource.AbstractResourceStream

getInputStream

public InputStream getInputStream()
                           throws org.apache.wicket.util.resource.ResourceStreamNotFoundException

Throws:
org.apache.wicket.util.resource.ResourceStreamNotFoundException

close

public void close()
           throws IOException

Throws:
IOException


Copyright © 2004-2012. All Rights Reserved.