private String getSchemaStringFromFile ( File schemaFile ) { String schemaString ; FileInputStream fis = null ; try { fis = new FileInputStream ( schemaFile ) ; schemaString = AvroUtils . inputStreamToString ( fis ) ; } catch ( IOException e ) { throw new DatasetException ( e ) ; } finally { if ( fis != null ) { try { fis . close ( ) ; } catch ( IOException e ) { } } } return schemaString ; }
Will return the contents of schemaFile as a string