jp.sourceforge.sowba.velocity.support
クラス IndentableFileResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.velocity.runtime.resource.loader.FileResourceLoader
jp.sourceforge.sowba.velocity.support.IndentableFileResourceLoader
public class IndentableFileResourceLoader
- extends org.apache.velocity.runtime.resource.loader.FileResourceLoader
Velocityのファイルリソースローダークラスorg.apache.velocity.runtime.resource.loader.FileResourceLoader
を拡張し、Velocityテンプレートファイルの行頭から#までのスペース、タブを除きます。
Velocityのプロパティは、以下のように設定してください。
resource.loader=FILE
FILE.resource.loader.class=jp.sourceforge.sowba.velocity.support.IndentableFileResourceLoader
- 作成者:
- TAKAHASHI Tomoyuki
Ver. | 日付 | 詳細 |
1.0 | 2008/01/12 | 新規作成 |
クラス org.apache.velocity.runtime.resource.loader.FileResourceLoader から継承されたメソッド |
getLastModified, init, isSourceModified |
クラス org.apache.velocity.runtime.resource.loader.ResourceLoader から継承されたメソッド |
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndentableFileResourceLoader
public IndentableFileResourceLoader()
getResourceStream
public java.io.InputStream getResourceStream(java.lang.String templateName)
throws org.apache.velocity.exception.ResourceNotFoundException
- オーバーライド:
- クラス
org.apache.velocity.runtime.resource.loader.FileResourceLoader
内の getResourceStream
- 例外:
org.apache.velocity.exception.ResourceNotFoundException