com.clickntap.tool.storage
Class Disk
java.lang.Object
com.clickntap.tool.storage.Disk
public class Disk
- extends Object
|
Constructor Summary |
Disk()
|
|
Method Summary |
void |
delete(Number id)
|
void |
delete(Number id,
String key)
|
boolean |
exists(Number id)
|
boolean |
exists(Number id,
String key)
|
String |
getVolumeName()
|
InputStream |
inputStream(Number id,
String key)
|
void |
load(Number id,
OutputStream out)
|
void |
load(Number id,
String key,
OutputStream out)
|
OutputStream |
outputStream(Number id,
String key,
long crc)
|
void |
setVolumeName(String volumeName)
|
void |
setWorkDir(org.springframework.core.io.Resource workDir)
|
void |
setWorkFile(File workFile)
|
void |
start()
|
void |
store(Number id,
InputStream in)
|
void |
store(Number id,
String key,
InputStream in)
|
InputStream |
stream(Number id)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Disk
public Disk()
getVolumeName
public String getVolumeName()
setVolumeName
public void setVolumeName(String volumeName)
setWorkDir
public void setWorkDir(org.springframework.core.io.Resource workDir)
throws IOException
- Throws:
IOException
setWorkFile
public void setWorkFile(File workFile)
start
public void start()
throws Exception
- Throws:
Exception
store
public void store(Number id,
InputStream in)
throws Exception
- Throws:
Exception
exists
public boolean exists(Number id)
throws Exception
- Throws:
Exception
load
public void load(Number id,
OutputStream out)
throws Exception
- Throws:
Exception
delete
public void delete(Number id)
throws Exception
- Throws:
Exception
stream
public InputStream stream(Number id)
throws Exception
- Throws:
Exception
store
public void store(Number id,
String key,
InputStream in)
throws Exception
- Throws:
Exception
inputStream
public InputStream inputStream(Number id,
String key)
throws Exception
- Throws:
Exception
outputStream
public OutputStream outputStream(Number id,
String key,
long crc)
throws Exception
- Throws:
Exception
load
public void load(Number id,
String key,
OutputStream out)
throws Exception
- Throws:
Exception
exists
public boolean exists(Number id,
String key)
throws Exception
- Throws:
Exception
delete
public void delete(Number id,
String key)
throws Exception
- Throws:
Exception
Copyright © 2014. All rights reserved.