question: private static String loadContents ( Object fileData ) throws IOException { String path = Draft3FileValueHelper . 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 ) { } } } }
target:  Load first CONTENTS_NUMBER_OF_BYTES bytes from file