org.springframework.data.keyvalue.riak.core.io
Class RiakFile<B,K>
java.lang.Object
java.io.File
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
|
log
protected final org.apache.commons.logging.Log log
RiakFile
public RiakFile(RiakTemplate riak,
B bucket,
K key)
throws URISyntaxException
- Throws:
URISyntaxException
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
Copyright © 2010-2011 SpringSource. All Rights Reserved.