I have spent two+ days getting a small printer to run, I need it in the office. Part of that time was writing a 'driver' in Java - with the intent of being able to read some text files, do hashing and so on, an print them on the printer from the same java applicaion.

There seems to be a notable lack of tools that will print a simple text string as we consider a string, I extracted the following information using the method calls as shown:

Java Code:
// this is one of 14 Doc Flavor []
DocFlavor.getMimeType()));    prints:     // {"application/x-java-jvm-local-objectref"},
DocFlavor.getMediaType()));   prints:     // {"application"},
DocFlavor.getMediaSubtype()));prints:     //{"x-java-jvm-local-objectref"}, 
DocFlavor.getRepresentationClassName())); // {"java.awt.print.Printable"},
DocFlavor.toString()));       prints:     // {"application/x-java-jvm-local-objectref; class=\"java.awt.print.Printable\""},
I suppose the only way to get true String printing capabilities without going through an intervening graphical format would be to use "x-java-jvm-local-objectref" mime type and write a class implementing java.awt.print.Printable .... I could just call String.getBytes(), no?

That still does not address line wrapping and other presentation issues, but it is a definite step ahead in what I am trying to achieve.....