StringTokenizer stringtokenizer = new StringTokenizer(s1, ".");
String s2 = stringtokenizer.nextToken() + ".blp";
String s3 = file.getParent() + "/" + s2;
try
{
BLPEncoder blpencoder = new BLPEncoder("png", s);
blpencoder.writeBLP(s3);
statusText.append("Encoded " + s1 + " into a .blp\n");
}
catch(ConversionException conversionexception)
{
statusText.append("Couldn't encode " + s1 + "\n");