public static void writeResource ( final Resource . Writable resource , final CharSequence content ) throws IOException { resource . useWriter ( writer -> IOUtils . write ( content . toString ( ) , writer ) ) ; }
Write content to a Writable Resource .