Knocked together batch / shell script to quickly convert SQL (or any text file) to a Java string (using StringBuilder). Put both the batch and the shell script into a directory on the path, add a shortcut to the batch file to your sendto folder, and then you can right click the file >> send to >> sqlify and notepad will pop up with your Java-ified text.
This requires Cygwin to be installed.
I'm sure it could be prettier, but it works.
sqlify.bat:
1
2 cat %1 | sh sqlify.sh > %1.txt
3 notepad "%~1.txt"
sqlify.sh:
1
2
3 echo "StringBuilder sqlBuilder = new StringBuilder();"
4 sed -e "s/^ */sqlBuilder.append(\"/g" -e "s/$/ \");/g" | unix2dos