org.exoplatform.services.common
Class DataBuffer

java.lang.Object
  extended by org.exoplatform.services.common.DataBuffer

public class DataBuffer
extends java.lang.Object

Author:
thuannd TODO To change the template for this generated type comment go to

Constructor Summary
DataBuffer()
           
 
Method Summary
 void copy(java.io.File from, java.io.File to)
           
 void copy(java.lang.String from, java.lang.String to)
           
 byte[] load(java.io.File file)
           
 byte[] load(java.io.FileInputStream input)
           
 byte[] load(java.lang.String path)
           
 java.io.ByteArrayOutputStream loadInputStream(java.io.InputStream input)
           
 void save(java.io.File file, byte[] d)
           
 void save(java.io.FileOutputStream output, byte[] d)
           
 java.io.File save(java.lang.String path, byte[] d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBuffer

public DataBuffer()
Method Detail

load

public byte[] load(java.lang.String path)
            throws java.lang.Exception
Throws:
java.lang.Exception

load

public byte[] load(java.io.File file)
            throws java.lang.Exception
Throws:
java.lang.Exception

load

public byte[] load(java.io.FileInputStream input)
            throws java.lang.Exception
Throws:
java.lang.Exception

save

public java.io.File save(java.lang.String path,
                         byte[] d)
                  throws java.lang.Exception
Throws:
java.lang.Exception

save

public void save(java.io.File file,
                 byte[] d)
          throws java.lang.Exception
Throws:
java.lang.Exception

save

public void save(java.io.FileOutputStream output,
                 byte[] d)
          throws java.lang.Exception
Throws:
java.lang.Exception

copy

public void copy(java.lang.String from,
                 java.lang.String to)
          throws java.lang.Exception
Throws:
java.lang.Exception

copy

public void copy(java.io.File from,
                 java.io.File to)
          throws java.lang.Exception
Throws:
java.lang.Exception

loadInputStream

public java.io.ByteArrayOutputStream loadInputStream(java.io.InputStream input)
                                              throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2012 eXo Platform SAS. All Rights Reserved.