private static String loadContents(Object fileData) throws IOException {
  String path=CWLFileValueHelper.getPath(fileData);
  InputStream is=null;
  try {
    File file=new File(path);
    is=new FileInputStream(file);
    byte[] buffer=new byte[Math.min(CONTENTS_NUMBER_OF_BYTES,(int)file.length())];
    is.read(buffer);
    return new String(buffer,"UTF-8");
  }
  finally {
    if (is != null) {
      try {
        is.close();
      }
 catch (      IOException e) {
      }
    }
  }
}

private static String loadContents ( Object fileData ) throws IOException { String path = CWLFileValueHelper . getPath ( fileData ) ; InputStream is = null ; try { File file = new File ( path ) ; is = new FileInputStream ( file ) ; byte [ ] buffer = new byte [ Math . min ( CONTENTS_NUMBER_OF_BYTES , ( int ) file . length ( ) ) ] ; is . read ( buffer ) ; return new String ( buffer , "UTF-8" ) ; } finally { if ( is != null ) { try { is . close ( ) ; } catch ( IOException e ) { } } } }
load first contents_number_of_bytes bytes from file
