String msg = null;
String[] fullPath = new String[1];
OutputStream os = getOutputStream(fileName, fullPath);
if (os == null)
return "";
OutputStringBuffer sb;
if (type.equals("PDB")) {
sb = new OutputStringBuffer(new BufferedOutputStream(os));
msg = getPdbData(null, sb);
} else if (type.equals("FILE")) {
msg = writeCurrentFile(os);
// quality = Integer.MIN_VALUE;
} else if (type.equals("PLOT")) {
sb = new OutputStringBuffer(new BufferedOutputStream(os));
msg = modelSet.getPdbData(modelIndex, type2, getSelectionSet(false), parameters, sb);
}
if (msg != null)
msg = "OK " + msg + " " + fullPath[0];
try {