|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.util.FileUtil
public class FileUtil
Utility methods for Java file handling.
| Constructor Summary | |
|---|---|
FileUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
readBytes(InputStream in)
Read all bytes from the input stream. |
static PyFile |
wrap(InputStream is)
Creates a PyFile that reads from the given InputStream. |
static PyFile |
wrap(InputStream is,
int bufsize)
Creates a PyFile that reads from the given InputStream with bufsize. |
static PyFile |
wrap(InputStream is,
String mode)
Creates a PyFile that reads from the given InputStream with mode. |
static PyFile |
wrap(OutputStream os)
Creates a PyFile that writes to the given OutputStream. |
static PyFile |
wrap(OutputStream os,
int bufsize)
Creates a PyFile that writes to the given OutputStream with bufsize. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileUtil()
| Method Detail |
|---|
public static PyFile wrap(InputStream is,
String mode)
InputStream with mode.
public static PyFile wrap(InputStream is,
int bufsize)
InputStream with bufsize.
public static PyFile wrap(InputStream is)
InputStream.
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||