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