org.wicketstuff.poi.excel
Class XlsStream

java.lang.Object
  extended by org.apache.wicket.util.resource.AbstractResourceStream
      extended by org.wicketstuff.poi.excel.XlsStream
All Implemented Interfaces:
Closeable, Serializable, IClusterable, IResourceStream, IModifiable

public class XlsStream
extends AbstractResourceStream

The XLS file resource for the specified Workbook

Author:
Pedro Santos
See Also:
Serialized Form

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

Constructor Detail

XlsStream

public XlsStream(org.apache.poi.ss.usermodel.Workbook wb)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws ResourceStreamNotFoundException
Throws:
ResourceStreamNotFoundException

close

public void close()
           throws IOException
Throws:
IOException

getContentType

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

lastModifiedTime

public Time lastModifiedTime()
Specified by:
lastModifiedTime in interface IModifiable
Overrides:
lastModifiedTime in class AbstractResourceStream


Copyright © 2013. All Rights Reserved.