@Override
public JarInputStream getJarInputStream() throws IOException {
if (bytes != null) {
- System.out.println("Jalview2XML: opening byte jarInputStream for bytes.length=" + bytes.length);
+// System.out.println("Jalview2XML: opening byte jarInputStream for bytes.length=" + bytes.length);
return new JarInputStream(new ByteArrayInputStream(bytes));
}
if (_url != null) {
- System.out.println("Jalview2XML: opening url jarInputStream for " + _url);
+// System.out.println("Jalview2XML: opening url jarInputStream for " + _url);
return new JarInputStream(_url.openStream());
} else {
- System.out.println("Jalview2XML: opening file jarInputStream for " + file);
+// System.out.println("Jalview2XML: opening file jarInputStream for " + file);
return new JarInputStream(new FileInputStream(file));
}
}
for (int i = 0; i < entryCount; i++)
{
jarentry = jin.getNextJarEntry();
- System.out.println("Jalview2XML#loadJalviewAlign: jarentry=" + (jarentry == null ? null : jarentry.getName()));
}
if (jarentry != null && jarentry.getName().endsWith(".xml"))
{
- InputStreamReader in = new InputStreamReader(jin, UTF_8);
- // JalviewModel object = new JalviewModel();
-
JAXBContext jc = JAXBContext
.newInstance("jalview.xml.binding.jalview");
XMLStreamReader streamReader = XMLInputFactory.newInstance()
JAXBElement<JalviewModel> jbe = um
.unmarshal(streamReader, JalviewModel.class);
JalviewModel object = jbe.getValue();
- System.out.println("processing JalviewModel object=" + object);
- /*
- Unmarshaller unmar = new Unmarshaller(object);
- unmar.setValidation(false);
- object = (JalviewModel) unmar.unmarshal(in);
- */
+
if (true) // !skipViewport(object))
{
_af = loadFromObject(object, file, true, jprovider);
do
{
entry = jin.getNextJarEntry();
- System.out.println("Jalview2XML#copyJarEntry: jarentry=" + (entry == null ? null : entry.getName()));
} while (entry != null && !entry.getName().equals(jarEntryName));
if (entry != null)
{
do
{
entry = jin.getNextJarEntry();
- System.out.println("Jalview2XML#readJarEntry: jarentry=" + (entry == null ? null : entry.getName()));
} while (entry != null && !entry.getName().equals(jarEntryName));
if (entry != null)