public class FileUtil extends Object
| Constructor and Description | 
|---|
| FileUtil() | 
| Modifier and Type | Method and Description | 
|---|---|
| static byte[] | readBytes(InputStream in)Read all bytes from the input stream. | 
| static PyFile | wrap(InputStream is)Creates a PyFile in text mode that reads from the given  InputStream. | 
| static PyFile | wrap(InputStream is,
    int bufsize)Creates a PyFile in text mode that reads from the given  InputStreamusing bufsize. | 
| static PyFile | wrap(InputStream is,
    String mode)Creates a PyFile with mode that reads from the  InputStream. | 
| static PyFile | wrap(InputStream is,
    String mode,
    int bufsize)Creates a PyFile with mode that reads from the given  InputStreamusing bufsize. | 
| static PyFile | wrap(OutputStream os)Creates a PyFile in text mode that writes to the given  OutputStream. | 
| static PyFile | wrap(OutputStream os,
    int bufsize)Creates a PyFile in text mode that writes to the given  OutputStreamwith bufsize. | 
| static PyFile | wrap(OutputStream os,
    String mode)Creates a PyFile with mode that writes to the given  OutputStream | 
| static PyFile | wrap(OutputStream os,
    String mode,
    int bufsize)Creates a PyFile with mode that writes to the given  OutputStreamwith the
 given bufsize. | 
public static PyFile wrap(InputStream is, String mode, int bufsize)
InputStream using bufsize.public static PyFile wrap(InputStream is, String mode)
InputStream.public static PyFile wrap(InputStream is, int bufsize)
InputStream
 using bufsize.public static PyFile wrap(InputStream is)
InputStream.public static PyFile wrap(OutputStream os, String mode, int bufsize)
OutputStream with the
 given bufsize.public static PyFile wrap(OutputStream os, String mode)
OutputStreampublic static PyFile wrap(OutputStream os, int bufsize)
OutputStream
 with bufsize.public static PyFile wrap(OutputStream os)
OutputStream.public static byte[] readBytes(InputStream in) throws IOException
IOException