try
{
File fa = File.createTempFile("jvmime", ".fa");
- PrintWriter pw = new PrintWriter(
- new OutputStreamWriter(new BufferedOutputStream(
- new FileOutputStream(fa)), "UTF-8"));
- pw.append(new FormatAdapter().formatSequences(format,
- alignment, jvsuffix));
+ PrintWriter pw = new PrintWriter(new OutputStreamWriter(
+ new BufferedOutputStream(new FileOutputStream(fa)),
+ "UTF-8"));
+ pw.append(new FormatAdapter().formatSequences(format, alignment,
+ jvsuffix));
pw.close();
return new FileBody(fa, "text/plain");
} catch (Exception ex)
return true;
}
}
- warnings.append("Invalid alignment format '" + val
- + "'. Must be one of (");
+ warnings.append(
+ "Invalid alignment format '" + val + "'. Must be one of (");
for (String fmt : FileFormats.getInstance().getWritableFormats(true))
{
warnings.append(" ").append(fmt);
return true;
} catch (Exception x)
{
- warnings.append("Invalid molecule type '" + val
- + "'. Must be one of (");
+ warnings.append(
+ "Invalid molecule type '" + val + "'. Must be one of (");
for (molType v : molType.values())
{
warnings.append(" " + v);
"Append jalview style /start-end suffix to ID", false, false,
writeAsFile, null));
- List<String> writable = FileFormats
- .getInstance().getWritableFormats(true);
+ List<String> writable = FileFormats.getInstance()
+ .getWritableFormats(true);
lst.add(new Option("format", "Alignment upload format", true,
- FileFormat.Fasta.toString(), format.getName(), writable,
+ FileFormat.Fasta.toString(), format.getName(), writable, null));
+ lst.add(createMolTypeOption("type", "Sequence type", false, type,
null));
- lst.add(createMolTypeOption("type", "Sequence type", false, type, null));
return lst;
}