question: private String noteToString ( Repository repo , Note note ) throws MissingObjectException , IOException , UnsupportedEncodingException { ObjectLoader loader = repo . open ( note . getData ( ) ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; loader . copyTo ( baos ) ; return new String ( baos . toByteArray ( ) , "UTF-8" ) ; }
target:  Utility method that converts a note to a string (assuming it's UTF-8).