org.apache.nutch.io
Class WritableUtils

java.lang.Object
  extended byorg.apache.nutch.io.WritableUtils

public final class WritableUtils
extends Object


Constructor Summary
WritableUtils()
           
 
Method Summary
static void displayByteArray(byte[] record)
           
static byte[] readCompressedByteArray(DataInput in)
           
static String readCompressedString(DataInput in)
           
static String[] readCompressedStringArray(DataInput in)
           
static String readString(DataInput in)
           
static String[] readStringArray(DataInput in)
           
static void skipCompressedByteArray(DataInput in)
           
static int writeCompressedByteArray(DataOutput out, byte[] bytes)
           
static int writeCompressedString(DataOutput out, String s)
           
static void writeCompressedStringArray(DataOutput out, String[] s)
           
static void writeString(DataOutput out, String s)
           
static void writeStringArray(DataOutput out, String[] s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WritableUtils

public WritableUtils()
Method Detail

readCompressedByteArray

public static byte[] readCompressedByteArray(DataInput in)
                                      throws IOException
Throws:
IOException

skipCompressedByteArray

public static void skipCompressedByteArray(DataInput in)
                                    throws IOException
Throws:
IOException

writeCompressedByteArray

public static int writeCompressedByteArray(DataOutput out,
                                           byte[] bytes)
                                    throws IOException
Throws:
IOException

readCompressedString

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

writeCompressedString

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

writeString

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

readString

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

writeStringArray

public static void writeStringArray(DataOutput out,
                                    String[] s)
                             throws IOException
Throws:
IOException

writeCompressedStringArray

public static void writeCompressedStringArray(DataOutput out,
                                              String[] s)
                                       throws IOException
Throws:
IOException

readStringArray

public static String[] readStringArray(DataInput in)
                                throws IOException
Throws:
IOException

readCompressedStringArray

public static String[] readCompressedStringArray(DataInput in)
                                          throws IOException
Throws:
IOException

displayByteArray

public static void displayByteArray(byte[] record)


Copyright © 2006 The Apache Software Foundation