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 Bar implements Savable {
12 private static final Logger logger = Logger.getLogger(Bar.class.getName());
21 public void write(JMEExporter e) {
23 e.getCapsule(this).write(f, "f", 0);
24 e.getCapsule(this).write(g, "g", 0);
25 } catch (IOException e1) {
26 logger.logp(Level.SEVERE, this.getClass().toString(), "write(JMEExporter e)", "Exception", e1);
30 public void read(JMEImporter e) {
32 f = e.getCapsule(this).readFloat("f", 0);
33 g = e.getCapsule(this).readFloat("g", 0);
34 } catch (IOException e1) {
35 logger.logp(Level.SEVERE, this.getClass().toString(), "read(JMEImporter e)", "Exception", e1);
39 public Class getClassTag() {
40 return this.getClass();