Spring Data Key-Value

org.springframework.data.keyvalue.riak.core.io
Class RiakFile<B,K>

java.lang.Object
  extended by java.io.File
      extended by org.springframework.data.keyvalue.riak.core.io.RiakFile<B,K>
All Implemented Interfaces:
Serializable, Comparable<File>

public class RiakFile<B,K>
extends File

Author:
J. Brisbin
See Also:
Serialized Form

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
RiakFile(RiakTemplate riak, B bucket, K key)
           
 
Method Summary
 boolean canExecute()
           
 boolean canRead()
           
 boolean canWrite()
           
 int compareTo(File file)
           
 boolean createNewFile()
           
 boolean delete()
           
 void deleteOnExit()
           
 boolean equals(Object o)
           
 boolean exists()
           
 File getAbsoluteFile()
           
 String getAbsolutePath()
           
 B getBucket()
           
 File getCanonicalFile()
           
 String getCanonicalPath()
           
 long getFreeSpace()
           
 K getKey()
           
 String getName()
           
 String getParent()
           
 File getParentFile()
           
 String getPath()
           
 RiakTemplate getRiak()
           
 long getTotalSpace()
           
 String getUriAsString(boolean includeKey)
           
 long getUsableSpace()
           
 int hashCode()
           
 boolean isAbsolute()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 long lastModified()
           
 long length()
           
 String[] list()
           
 String[] list(FilenameFilter filenameFilter)
           
 File[] listFiles()
           
 File[] listFiles(FileFilter fileFilter)
           
 File[] listFiles(FilenameFilter filenameFilter)
           
 boolean mkdir()
           
 boolean mkdirs()
           
 boolean renameTo(File file)
           
 void setBucket(B bucket)
           
 boolean setExecutable(boolean b)
           
 boolean setExecutable(boolean b, boolean b1)
           
 void setKey(K key)
           
 boolean setLastModified(long l)
           
 boolean setReadable(boolean b)
           
 boolean setReadable(boolean b, boolean b1)
           
 boolean setReadOnly()
           
 void setRiak(RiakTemplate riak)
           
 boolean setWritable(boolean b)
           
 boolean setWritable(boolean b, boolean b1)
           
 String toString()
           
 URI toURI()
           
 URL toURL()
           
 
Methods inherited from class java.io.File
createTempFile, createTempFile, listRoots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

RiakFile

public RiakFile(RiakTemplate riak,
                B bucket,
                K key)
         throws URISyntaxException
Throws:
URISyntaxException
Method Detail

getUriAsString

public String getUriAsString(boolean includeKey)

getRiak

public RiakTemplate getRiak()

setRiak

public void setRiak(RiakTemplate riak)

getBucket

public B getBucket()

setBucket

public void setBucket(B bucket)

getKey

public K getKey()

setKey

public void setKey(K key)

getName

public String getName()
Overrides:
getName in class File

getParent

public String getParent()
Overrides:
getParent in class File

getParentFile

public File getParentFile()
Overrides:
getParentFile in class File

getPath

public String getPath()
Overrides:
getPath in class File

isAbsolute

public boolean isAbsolute()
Overrides:
isAbsolute in class File

getAbsolutePath

public String getAbsolutePath()
Overrides:
getAbsolutePath in class File

getAbsoluteFile

public File getAbsoluteFile()
Overrides:
getAbsoluteFile in class File

getCanonicalPath

public String getCanonicalPath()
                        throws IOException
Overrides:
getCanonicalPath in class File
Throws:
IOException

getCanonicalFile

public File getCanonicalFile()
                      throws IOException
Overrides:
getCanonicalFile in class File
Throws:
IOException

toURL

public URL toURL()
          throws MalformedURLException
Overrides:
toURL in class File
Throws:
MalformedURLException

toURI

public URI toURI()
Overrides:
toURI in class File

canRead

public boolean canRead()
Overrides:
canRead in class File

canWrite

public boolean canWrite()
Overrides:
canWrite in class File

exists

public boolean exists()
Overrides:
exists in class File

isDirectory

public boolean isDirectory()
Overrides:
isDirectory in class File

isFile

public boolean isFile()
Overrides:
isFile in class File

isHidden

public boolean isHidden()
Overrides:
isHidden in class File

lastModified

public long lastModified()
Overrides:
lastModified in class File

length

public long length()
Overrides:
length in class File

createNewFile

public boolean createNewFile()
                      throws IOException
Overrides:
createNewFile in class File
Throws:
IOException

delete

public boolean delete()
Overrides:
delete in class File

deleteOnExit

public void deleteOnExit()
Overrides:
deleteOnExit in class File

list

public String[] list()
Overrides:
list in class File

list

public String[] list(FilenameFilter filenameFilter)
Overrides:
list in class File

listFiles

public File[] listFiles()
Overrides:
listFiles in class File

listFiles

public File[] listFiles(FilenameFilter filenameFilter)
Overrides:
listFiles in class File

listFiles

public File[] listFiles(FileFilter fileFilter)
Overrides:
listFiles in class File

mkdir

public boolean mkdir()
Overrides:
mkdir in class File

mkdirs

public boolean mkdirs()
Overrides:
mkdirs in class File

renameTo

public boolean renameTo(File file)
Overrides:
renameTo in class File

setLastModified

public boolean setLastModified(long l)
Overrides:
setLastModified in class File

setReadOnly

public boolean setReadOnly()
Overrides:
setReadOnly in class File

setWritable

public boolean setWritable(boolean b,
                           boolean b1)
Overrides:
setWritable in class File

setWritable

public boolean setWritable(boolean b)
Overrides:
setWritable in class File

setReadable

public boolean setReadable(boolean b,
                           boolean b1)
Overrides:
setReadable in class File

setReadable

public boolean setReadable(boolean b)
Overrides:
setReadable in class File

setExecutable

public boolean setExecutable(boolean b,
                             boolean b1)
Overrides:
setExecutable in class File

setExecutable

public boolean setExecutable(boolean b)
Overrides:
setExecutable in class File

canExecute

public boolean canExecute()
Overrides:
canExecute in class File

getTotalSpace

public long getTotalSpace()
Overrides:
getTotalSpace in class File

getFreeSpace

public long getFreeSpace()
Overrides:
getFreeSpace in class File

getUsableSpace

public long getUsableSpace()
Overrides:
getUsableSpace in class File

compareTo

public int compareTo(File file)
Specified by:
compareTo in interface Comparable<File>
Overrides:
compareTo in class File

equals

public boolean equals(Object o)
Overrides:
equals in class File

hashCode

public int hashCode()
Overrides:
hashCode in class File

toString

public String toString()
Overrides:
toString in class File

Spring Data Key-Value

Copyright © 2010-2011 SpringSource. All Rights Reserved.