Found this out using a combination of information:
IOUtilities.streamToBytes (is);
Directly on the input stream. Thus, a more complete example might be the following:
classs = Class.forName( "com.packagename.stuff.FileDemo" );
InputStream is = classs.getResourceAsStream( "/test" );
byte [] data = IOUtilities.streamToBytes(is);
= String ();
Deal? Deal.