jp.carabiner.inkpod.model
インタフェース Resource

既知のサブインタフェースの一覧:
EmbeddedResource
既知の実装クラスの一覧:
FileResource, URLResource

public interface Resource

InputStream, OutputStreamで読み書きできるリソースの抽象化インタフェース。


メソッドの概要
 boolean exists()
           
 java.io.File getFile()
           
 java.lang.String getFilename()
           
 java.io.InputStream getInputStream()
           
 java.io.OutputStream getOutputStream()
           
 Resource getParent()
           
 java.lang.String getPath()
           
 java.lang.String getRelativePath(Resource resource)
           
 Resource getResource(java.lang.String relativePath)
           
 boolean isFile()
           
 boolean isWritable()
           
 long lastModified()
           
 long length()
           
 void setLastModified(long lastModified)
           
 java.net.URI toURI()
           
 

メソッドの詳細

getFilename

java.lang.String getFilename()

exists

boolean exists()

length

long length()

lastModified

long lastModified()

setLastModified

void setLastModified(long lastModified)

getPath

java.lang.String getPath()
                         throws java.io.IOException
例外:
java.io.IOException

getFile

java.io.File getFile()

isFile

boolean isFile()

toURI

java.net.URI toURI()

getResource

Resource getResource(java.lang.String relativePath)

getRelativePath

java.lang.String getRelativePath(Resource resource)
                                 throws java.io.IOException
例外:
java.io.IOException

getParent

Resource getParent()

getInputStream

java.io.InputStream getInputStream()
                                   throws java.io.IOException
例外:
java.io.IOException

isWritable

boolean isWritable()

getOutputStream

java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
例外:
java.io.IOException