wicket.util.resource
Class AbstractResourceStream

java.lang.Object
  extended bywicket.util.resource.AbstractResourceStream
All Implemented Interfaces:
IModifiable, IResourceStream, IStringResourceStream, java.io.Serializable
Direct Known Subclasses:
AbstractStringResourceStream, FileResourceStream, UrlResourceStream

public abstract class AbstractResourceStream
extends java.lang.Object
implements IStringResourceStream

Author:
Jonathan Locke
See Also:
IResourceStream, Serialized Form

Constructor Summary
AbstractResourceStream()
           
 
Method Summary
 java.lang.String asString()
           
protected  java.nio.charset.Charset getCharset()
           
 void setCharset(java.nio.charset.Charset charset)
          Sets the character set used for reading this resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wicket.util.resource.IResourceStream
close, getContentType, getInputStream, length
 
Methods inherited from interface wicket.util.watch.IModifiable
lastModifiedTime
 

Constructor Detail

AbstractResourceStream

public AbstractResourceStream()
Method Detail

setCharset

public void setCharset(java.nio.charset.Charset charset)
Sets the character set used for reading this resource.

Specified by:
setCharset in interface IStringResourceStream
Parameters:
charset - Charset for component

asString

public java.lang.String asString()
Specified by:
asString in interface IStringResourceStream
Returns:
This resource as a String.

getCharset

protected java.nio.charset.Charset getCharset()
Returns:
Charset for resource


Copyright © 2004-2005 Wicket developers. All Rights Reserved.