org.apache.hadoop.hdfs
Class DeprecatedUTF8

java.lang.Object
  extended by org.apache.hadoop.io.UTF8
      extended by org.apache.hadoop.hdfs.DeprecatedUTF8
All Implemented Interfaces:
Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable

@InterfaceAudience.Private
public class DeprecatedUTF8
extends org.apache.hadoop.io.UTF8

A simple wrapper around UTF8. This class should be used only when it is absolutely necessary to use UTF8. The only difference is that using this class does not require "@SuppressWarning" annotation to avoid javac warning. Instead the deprecation is implied in the class name. This should be treated as package private class to HDFS.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.io.UTF8
org.apache.hadoop.io.UTF8.Comparator
 
Constructor Summary
DeprecatedUTF8()
           
DeprecatedUTF8(DeprecatedUTF8 utf8)
          Construct from a given string.
DeprecatedUTF8(String string)
          Construct from a given string.
 
Method Summary
static String readString(DataInput in)
           
static int writeString(DataOutput out, String s)
           
 
Methods inherited from class org.apache.hadoop.io.UTF8
compareTo, equals, getBytes, getBytes, getLength, hashCode, readFields, set, set, skip, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeprecatedUTF8

public DeprecatedUTF8()

DeprecatedUTF8

public DeprecatedUTF8(String string)
Construct from a given string.


DeprecatedUTF8

public DeprecatedUTF8(DeprecatedUTF8 utf8)
Construct from a given string.

Method Detail

readString

public static String readString(DataInput in)
                         throws IOException
Throws:
IOException

writeString

public static int writeString(DataOutput out,
                              String s)
                       throws IOException
Throws:
IOException


Copyright © 2009 The Apache Software Foundation