summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/raw/DataEncoder.java
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-07-15 16:24:01 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-07-15 16:24:01 +0000
commit717836fab714569b78673c78ada3baed0376b979 (patch)
tree359654206ca7b66dafeab135289fcacefd7f1af8 /src/main/java/com/amazon/carbonado/raw/DataEncoder.java
parent9afe8abca1ae161905f1bcb179479a279580b6c8 (diff)
Key encoder/decoder no longer extend from data encoder/decoder.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/raw/DataEncoder.java')
-rw-r--r--src/main/java/com/amazon/carbonado/raw/DataEncoder.java16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/main/java/com/amazon/carbonado/raw/DataEncoder.java b/src/main/java/com/amazon/carbonado/raw/DataEncoder.java
index 6eebc93..e8383b9 100644
--- a/src/main/java/com/amazon/carbonado/raw/DataEncoder.java
+++ b/src/main/java/com/amazon/carbonado/raw/DataEncoder.java
@@ -21,6 +21,8 @@ package com.amazon.carbonado.raw;
import java.io.IOException;
import java.io.OutputStream;
+import static com.amazon.carbonado.raw.EncodingConstants.*;
+
/**
* A very low-level class that supports encoding of primitive data. For
* encoding data into keys, see {@link KeyEncoder}.
@@ -29,21 +31,9 @@ import java.io.OutputStream;
* @see DataDecoder
*/
public class DataEncoder {
- // Note: Most of these methods are inherited by KeyEncoder, which is why
+ // Note: Most of these methods are also used by KeyEncoder, which is why
// they are encoded for supporting proper ordering.
- /** Byte to use for null, low ordering */
- static final byte NULL_BYTE_LOW = 0;
-
- /** Byte to use for null, high ordering */
- static final byte NULL_BYTE_HIGH = (byte)~NULL_BYTE_LOW;
-
- /** Byte to use for not-null, low ordering */
- static final byte NOT_NULL_BYTE_HIGH = (byte)128;
-
- /** Byte to use for not-null, high ordering */
- static final byte NOT_NULL_BYTE_LOW = (byte)~NOT_NULL_BYTE_HIGH;
-
/**
* Encodes the given signed integer into exactly 4 bytes.
*