| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static File | Returns: File object for subsequent opento create/control filename)Create the named file (if necessary) and give just the owner read-write access. |
| public static File | Returns: File object for subsequent opento create/control file)Create the identified file (if necessary) and give just the owner read-write access. |
| public static byte[] | |
| public static PyFile | wrap(InputStream is, String mode, int bufsize)
Creates a PyFile with mode that reads from the given |
| public static PyFile | |
| public static PyFile | wrap(InputStream is, int bufsize)
Creates a PyFile in text mode that reads from the given |
| public static PyFile | |
| public static PyFile | wrap(OutputStream os, String mode, int bufsize)
Creates a PyFile with mode that writes to the given |
| public static PyFile | |
| public static PyFile | wrap(OutputStream os, int bufsize)
Creates a PyFile in text mode that writes to the given |
| public static PyFile |
| FileUtil | back to summary |
|---|---|
| public FileUtil() | |
| makePrivateRW | back to summary |
|---|---|
| public static File makePrivateRW(String filename) throws IOException Create the named file (if necessary) and give just the owner read-write access. | |
| makePrivateRW | back to summary |
|---|---|
| public static File makePrivateRW(File file) throws IOException Create the identified file (if necessary) and give just the owner read-write access. | |
| readBytes | back to summary |
|---|---|
| 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. | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(InputStream is, String mode, int bufsize) Creates a PyFile with mode that reads from the given | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(InputStream is, String mode) Creates a PyFile with mode that reads from the | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(InputStream is, int bufsize) Creates a PyFile in text mode that reads from the given | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(InputStream is) Creates a PyFile in text mode that reads from the given | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(OutputStream os, String mode, int bufsize) Creates a PyFile with mode that writes to the given | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(OutputStream os, String mode) Creates a PyFile with mode that writes to the given | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(OutputStream os, int bufsize) Creates a PyFile in text mode that writes to the given | |
| wrap | back to summary |
|---|---|
| public static PyFile wrap(OutputStream os) Creates a PyFile in text mode that writes to the given | |