Firefish 0.5.10

gov.lbl.dsd.firefish.util
Class NIOUtil

java.lang.Object
  extended bygov.lbl.dsd.firefish.util.NIOUtil

public class NIOUtil
extends Object

Miscellaneous java.nio (new I/O) related utility functions.

Version:
$Revision: 1.2 $, $Date: 2004/01/30 01:18:02 $

Method Summary
static CharSequence file2AsciiCharSequence(File file)
          High performance implementation using a mapped byte buffer
static CharSequence file2AsciiCharSequence(FileInputStream fis)
          High performance implementation using a mapped byte buffer
static CharSequence file2AsciiCharSequence(String fileName)
          High performance implementation using a mapped byte buffer
static CharSequence file2CharSequence(File file)
           
static CharSequence file2CharSequence(FileInputStream fis)
           
static CharSequence file2CharSequence(String fileName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

file2AsciiCharSequence

public static CharSequence file2AsciiCharSequence(String fileName)
                                           throws IOException
High performance implementation using a mapped byte buffer

Throws:
IOException

file2AsciiCharSequence

public static CharSequence file2AsciiCharSequence(File file)
                                           throws IOException
High performance implementation using a mapped byte buffer

Throws:
IOException

file2AsciiCharSequence

public static CharSequence file2AsciiCharSequence(FileInputStream fis)
                                           throws IOException
High performance implementation using a mapped byte buffer

Throws:
IOException

file2CharSequence

public static CharSequence file2CharSequence(String fileName)
                                      throws IOException
Throws:
IOException

file2CharSequence

public static CharSequence file2CharSequence(File file)
                                      throws IOException
Throws:
IOException

file2CharSequence

public static CharSequence file2CharSequence(FileInputStream fis)
                                      throws IOException
Throws:
IOException

Firefish 0.5.10

Jump to the Firefish Homepage