public class TransformedResource extends ByteArrayResource
ResourceTransformer
がコンテンツを除く他のすべての情報を保持する元のリソースを表すために使用できる ByteArrayResource
の拡張。コンストラクターと説明 |
---|
TransformedResource(Resource original, byte[] transformedContent) |
修飾子と型 | メソッドと説明 |
---|---|
StringSE | getFilename() この実装は、このリソース型にファイル名がないと仮定して、常に null を返します。 |
long | lastModified() この実装は、使用可能な場合、元となるファイルのタイムスタンプをチェックします。 |
contentLength, equals, exists, getByteArray, getDescription, getInputStream, hashCode
createRelative, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isOpen, isReadable, readableChannel, toString
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public TransformedResource(Resource original, byte[] transformedContent)
@Nullable public StringSE getFilename()
AbstractResource
null
を返します。Resource
の getFilename
AbstractResource
の getFilename
public long lastModified() throws IOExceptionSE
AbstractResource
Resource
の lastModified
AbstractResource
の lastModified
IOExceptionSE
- リソースを解決できない場合 (ファイルシステム内、または他の既知の物理リソース型として)AbstractResource.getFileForLastModifiedCheck()