//boolean d = file.delete();
//file.createNewFile();
File filefrom = new File("/tmp/from.txt");
assertTrue(filefrom.exists());
SRBFileOutputStream to = null;
InputStream from = null;
try {
to = new SRBFileOutputStream((SRBFile) file);
from = new FileInputStream(filefrom);
byte[] buffer = new byte[4096];
int bytes_read;
while ((bytes_read = from.read(buffer)) != -1) {
to.write(buffer, 0, bytes_read);
}
//String content = "123456789";
//byte[] bytes = content.getBytes();
//to.write(bytes);
to.flush();
} finally {
try {
if (to != null) {
to.close();
}
} catch (Exception ex) {
}
try {
if (from != null) {