1 package com.jme.util.export.binary;
3 import java.io.IOException;
4 import java.util.logging.Level;
5 import java.util.logging.Logger;
7 import com.jme.util.export.JMEExporter;
8 import com.jme.util.export.JMEImporter;
9 import com.jme.util.export.Savable;
11 public class Snafu extends Bar implements Savable {
12 private static final Logger logger = Logger
13 .getLogger(Snafu.class.getName());
19 public void write(JMEExporter e) {
22 e.getCapsule(this).write(test, "test", 0);
23 } catch (IOException e1) {
24 logger.logp(Level.SEVERE, this.getClass().toString(), "write(JMEExporter e)", "Exception", e1);
29 public void read(JMEImporter e) {
32 test = e.getCapsule(this).readInt("test", 0);
33 } catch (IOException e1) {
34 logger.logp(Level.SEVERE, this.getClass().toString(), "read(JMEImporter e)", "Exception", e1);