aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/game/LittleEndianHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/game/LittleEndianHandler.java')
-rw-r--r--src/jake2/game/LittleEndianHandler.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/jake2/game/LittleEndianHandler.java b/src/jake2/game/LittleEndianHandler.java
new file mode 100644
index 0000000..932a84b
--- /dev/null
+++ b/src/jake2/game/LittleEndianHandler.java
@@ -0,0 +1,56 @@
+/*
+ * LittleEndianHandler.java
+ * Copyright (C) 2003
+ *
+ * $Id: LittleEndianHandler.java,v 1.1 2004-07-07 19:59:07 hzi Exp $
+ */
+package jake2.game;
+
+/**
+ * LittleEndianHandler</code>
+ */
+public final class LittleEndianHandler extends EndianHandler {
+
+ /* (non-Javadoc)
+ * @see quake2.EndianHandler#BigFloat(float)
+ */
+ public float BigFloat(float f) {
+ return swapFloat(f);
+ }
+
+ /* (non-Javadoc)
+ * @see quake2.EndianHandler#BigShort(short)
+ */
+ public short BigShort(short s) {
+ return swapShort(s);
+ }
+
+ /* (non-Javadoc)
+ * @see quake2.EndianHandler#BigLong(int)
+ */
+ public int BigLong(int i) {
+ return swapInt(i);
+ }
+
+ /* (non-Javadoc)
+ * @see quake2.EndianHandler#LittleFloat(float)
+ */
+ public float LittleFloat(float f) {
+ return f;
+ }
+
+ /* (non-Javadoc)
+ * @see quake2.EndianHandler#LittleShort(short)
+ */
+ public short LittleShort(short s) {
+ return s;
+ }
+
+ /* (non-Javadoc)
+ * @see quake2.EndianHandler#LittleLong(int)
+ */
+ public int LittleLong(int i) {
+ return i;
+ }
+
+}