org.apache.nutch.io
Class WritableUtils
java.lang.Object
org.apache.nutch.io.WritableUtils
- public final class WritableUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WritableUtils
public WritableUtils()
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