org.exoplatform.services.common
Class DataReader

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

public class DataReader
extends java.lang.Object

Author : Nhu Dinh Thuan Email:nhudinhthuan@yahoo.com Jun 4, 2007


Constructor Summary
DataReader()
           
 
Method Summary
 byte[] load(java.io.File file)
           
 byte[] load(java.io.FileInputStream input, long fsize)
           
 byte[] load(java.lang.String path)
           
 java.io.ByteArrayOutputStream loadInputStream(java.io.InputStream input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataReader

public DataReader()
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,
                   long fsize)
            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 © 2011 eXo Platform SAS. All Rights Reserved.