org.python.core

Class FileUtil


public class FileUtil
extends java.lang.Object

Utility methods for Java file handling.

Method Summary

static byte[]
readBytes(InputStream in)
Read all bytes from the input stream.

Method Details

readBytes

public static byte[] readBytes(InputStream in)
            throws IOException
Read all bytes from the input stream.

Note that using this method to read very large streams could cause out-of-memory exceptions and/or block for large periods of time.


Jython homepage