public class LibgdxFileHandle
extends java.lang.Object
implements org.mini2Dx.core.files.FileHandle
| Modifier and Type | Field and Description |
|---|---|
com.badlogic.gdx.files.FileHandle |
fileHandle |
| Constructor and Description |
|---|
LibgdxFileHandle(com.badlogic.gdx.files.FileHandle fileHandle) |
| Modifier and Type | Method and Description |
|---|---|
org.mini2Dx.core.files.FileHandle |
child(java.lang.String name) |
void |
copyTo(org.mini2Dx.core.files.FileHandle dest) |
boolean |
delete() |
boolean |
deleteDirectory() |
void |
emptyDirectory() |
void |
emptyDirectory(boolean preserveTree) |
boolean |
exists() |
java.lang.String |
extension() |
boolean |
isDirectory() |
long |
lastModified() |
long |
length() |
org.mini2Dx.core.files.FileHandle[] |
list() |
org.mini2Dx.core.files.FileHandle[] |
list(java.io.FileFilter filter) |
org.mini2Dx.core.files.FileHandle[] |
list(java.io.FilenameFilter filter) |
org.mini2Dx.core.files.FileHandle[] |
list(java.lang.String suffix) |
void |
mkdirs() |
void |
moveTo(org.mini2Dx.core.files.FileHandle dest) |
java.lang.String |
name() |
java.lang.String |
nameWithoutExtension() |
java.lang.String |
normalize() |
org.mini2Dx.core.files.FileHandle |
normalizedHandle() |
org.mini2Dx.core.files.FileHandle |
parent() |
java.lang.String |
path() |
java.lang.String |
pathWithoutExtension() |
java.io.InputStream |
read() |
java.io.BufferedInputStream |
read(int bufferSize) |
java.lang.String[] |
readAllLines() |
byte[] |
readBytes() |
int |
readBytes(byte[] bytes,
int offset,
int size) |
java.io.Reader |
reader() |
java.io.BufferedReader |
reader(int bufferSize) |
java.io.BufferedReader |
reader(int bufferSize,
java.lang.String charset) |
java.io.Reader |
reader(java.lang.String charset) |
java.lang.String |
readString() |
java.lang.String |
readString(java.lang.String charset) |
org.mini2Dx.core.files.FileHandle |
sibling(java.lang.String name) |
org.mini2Dx.core.files.FileType |
type() |
java.io.OutputStream |
write(boolean append) |
java.io.OutputStream |
write(boolean append,
int bufferSize) |
void |
write(java.io.InputStream input,
boolean append) |
void |
writeBytes(byte[] bytes,
boolean append) |
void |
writeBytes(byte[] bytes,
int offset,
int length,
boolean append) |
java.io.Writer |
writer(boolean append) |
java.io.Writer |
writer(boolean append,
java.lang.String charset) |
void |
writeString(java.lang.String string,
boolean append) |
void |
writeString(java.lang.String string,
boolean append,
java.lang.String charset) |
public LibgdxFileHandle(com.badlogic.gdx.files.FileHandle fileHandle)
public java.lang.String path()
path in interface org.mini2Dx.core.files.FileHandlepublic java.lang.String normalize()
normalize in interface org.mini2Dx.core.files.FileHandlepublic org.mini2Dx.core.files.FileHandle normalizedHandle()
normalizedHandle in interface org.mini2Dx.core.files.FileHandlepublic java.lang.String name()
name in interface org.mini2Dx.core.files.FileHandlepublic java.lang.String extension()
extension in interface org.mini2Dx.core.files.FileHandlepublic java.lang.String nameWithoutExtension()
nameWithoutExtension in interface org.mini2Dx.core.files.FileHandlepublic java.lang.String pathWithoutExtension()
pathWithoutExtension in interface org.mini2Dx.core.files.FileHandlepublic org.mini2Dx.core.files.FileType type()
type in interface org.mini2Dx.core.files.FileHandlepublic java.io.InputStream read()
throws java.io.IOException
read in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.BufferedInputStream read(int bufferSize)
throws java.io.IOException
read in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.Reader reader()
throws java.io.IOException
reader in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.Reader reader(java.lang.String charset)
throws java.io.IOException
reader in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.BufferedReader reader(int bufferSize)
throws java.io.IOException
reader in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.BufferedReader reader(int bufferSize,
java.lang.String charset)
throws java.io.IOException
reader in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.lang.String readString()
throws java.io.IOException
readString in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.lang.String readString(java.lang.String charset)
throws java.io.IOException
readString in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.lang.String[] readAllLines()
throws java.io.IOException
readAllLines in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic byte[] readBytes()
throws java.io.IOException
readBytes in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic int readBytes(byte[] bytes,
int offset,
int size)
throws java.io.IOException
readBytes in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.OutputStream write(boolean append)
throws java.io.IOException
write in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.OutputStream write(boolean append,
int bufferSize)
throws java.io.IOException
write in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void write(java.io.InputStream input,
boolean append)
throws java.io.IOException
write in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.Writer writer(boolean append)
throws java.io.IOException
writer in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic java.io.Writer writer(boolean append,
java.lang.String charset)
throws java.io.IOException
writer in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void writeString(java.lang.String string,
boolean append)
throws java.io.IOException
writeString in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void writeString(java.lang.String string,
boolean append,
java.lang.String charset)
throws java.io.IOException
writeString in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void writeBytes(byte[] bytes,
boolean append)
throws java.io.IOException
writeBytes in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void writeBytes(byte[] bytes,
int offset,
int length,
boolean append)
throws java.io.IOException
writeBytes in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic org.mini2Dx.core.files.FileHandle[] list()
throws java.io.IOException
list in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic org.mini2Dx.core.files.FileHandle[] list(java.io.FileFilter filter)
throws java.io.IOException
list in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic org.mini2Dx.core.files.FileHandle[] list(java.io.FilenameFilter filter)
throws java.io.IOException
list in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic org.mini2Dx.core.files.FileHandle[] list(java.lang.String suffix)
throws java.io.IOException
list in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic boolean isDirectory()
isDirectory in interface org.mini2Dx.core.files.FileHandlepublic org.mini2Dx.core.files.FileHandle child(java.lang.String name)
child in interface org.mini2Dx.core.files.FileHandlepublic org.mini2Dx.core.files.FileHandle sibling(java.lang.String name)
sibling in interface org.mini2Dx.core.files.FileHandlepublic org.mini2Dx.core.files.FileHandle parent()
parent in interface org.mini2Dx.core.files.FileHandlepublic void mkdirs()
throws java.io.IOException
mkdirs in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic boolean exists()
exists in interface org.mini2Dx.core.files.FileHandlepublic boolean delete()
throws java.io.IOException
delete in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic boolean deleteDirectory()
throws java.io.IOException
deleteDirectory in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void emptyDirectory()
throws java.io.IOException
emptyDirectory in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void emptyDirectory(boolean preserveTree)
throws java.io.IOException
emptyDirectory in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void copyTo(org.mini2Dx.core.files.FileHandle dest)
throws java.io.IOException
copyTo in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic void moveTo(org.mini2Dx.core.files.FileHandle dest)
throws java.io.IOException
moveTo in interface org.mini2Dx.core.files.FileHandlejava.io.IOExceptionpublic long length()
length in interface org.mini2Dx.core.files.FileHandlepublic long lastModified()
lastModified in interface org.mini2Dx.core.files.FileHandle