<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:10 CET 2013 -->
<TITLE>
FileHandle (libgdx API)
</TITLE>
<META NAME="date" CONTENT="2013-01-27">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="FileHandle (libgdx API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileHandle.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html" title="class in com.badlogic.gdx.files"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/files/FileHandle.html" target="_top"><B>FRAMES
</B></A>
<A HREF="FileHandle.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#field_summary">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
<A HREF="#field_detail">FIELD
</A> |
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.badlogic.gdx.files
</FONT>
<BR>
Class FileHandle
</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.files.FileHandle
</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:
</B> <DD><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html" title="class in com.badlogic.gdx.files">FileHandleStream
</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class
<B>FileHandle
</B><DT>extends java.lang.Object
</DL>
</PRE>
<P>
Represents a file or directory on the filesystem, classpath, Android SD card, or Android assets directory. FileHandles are
created via a
<A HREF="../../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx"><CODE>Files
</CODE></A> instance.
<P>
<P>
<DL>
<DT><B>Author:
</B></DT>
<DD>mzechner, Nathan Sweet
</DD>
</DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected
java.io.File
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#file">file
</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#type">type
</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#FileHandle()">FileHandle
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#FileHandle(java.io.File)">FileHandle
</A></B>(java.io.File
file)
</CODE>
<BR>
Creates a new absolute FileHandle for the
<CODE>File
</CODE>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#FileHandle(java.io.File, com.badlogic.gdx.Files.FileType)">FileHandle
</A></B>(java.io.File
file,
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A> type)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> </CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#FileHandle(java.lang.String)">FileHandle
</A></B>(java.lang.String
fileName)
</CODE>
<BR>
Creates a new absolute FileHandle for the file name.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#FileHandle(java.lang.String, com.badlogic.gdx.Files.FileType)">FileHandle
</A></B>(java.lang.String
fileName,
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A> type)
</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#child(java.lang.String)">child
</A></B>(java.lang.String
name)
</CODE>
<BR>
Returns a handle to the child with the specified name.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#copyTo(com.badlogic.gdx.files.FileHandle)">copyTo
</A></B>(
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> dest)
</CODE>
<BR>
Copies this file or directory to the specified file or directory.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#delete()">delete
</A></B>()
</CODE>
<BR>
Deletes this file or empty directory and returns success.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#deleteDirectory()">deleteDirectory
</A></B>()
</CODE>
<BR>
Deletes this file or directory and all children, recursively.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#emptyDirectory()">emptyDirectory
</A></B>()
</CODE>
<BR>
Deletes all children of this directory, recursively.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#emptyDirectory(boolean)">emptyDirectory
</A></B>(boolean
preserveTree)
</CODE>
<BR>
Deletes all children of this directory, recursively.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#exists()">exists
</A></B>()
</CODE>
<BR>
Returns true if the file exists.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#extension()">extension
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.File
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#file()">file
</A></B>()
</CODE>
<BR>
Returns a java.io.File that represents this file handle.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#isDirectory()">isDirectory
</A></B>()
</CODE>
<BR>
Returns true if this file is a directory.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#lastModified()">lastModified
</A></B>()
</CODE>
<BR>
Returns the last modified time in milliseconds for this file.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#length()">length
</A></B>()
</CODE>
<BR>
Returns the length in bytes of this file, or 0 if this file is a directory, does not exist, or the size cannot otherwise be
determined.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A>[]
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#list()">list
</A></B>()
</CODE>
<BR>
Returns the paths to the children of this directory.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A>[]
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#list(java.lang.String)">list
</A></B>(java.lang.String
suffix)
</CODE>
<BR>
Returns the paths to the children of this directory with the specified suffix.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#mkdirs()">mkdirs
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#moveTo(com.badlogic.gdx.files.FileHandle)">moveTo
</A></B>(
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> dest)
</CODE>
<BR>
Moves this file to the specified file, overwriting the file if it already exists.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#name()">name
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#nameWithoutExtension()">nameWithoutExtension
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#parent()">parent
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#path()">path
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#pathWithoutExtension()">pathWithoutExtension
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.InputStream
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#read()">read
</A></B>()
</CODE>
<BR>
Returns a stream for reading this file as bytes.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.BufferedInputStream
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#read(int)">read
</A></B>(int
bufferSize)
</CODE>
<BR>
Returns a buffered stream for reading this file as bytes.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte[]
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readBytes()">readBytes
</A></B>()
</CODE>
<BR>
Reads the entire file into a byte array.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readBytes(byte[], int, int)">readBytes
</A></B>(byte[]
bytes,
int
offset,
int
size)
</CODE>
<BR>
Reads the entire file into the byte array.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.Reader
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader()">reader
</A></B>()
</CODE>
<BR>
Returns a reader for reading this file as characters.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.BufferedReader
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader(int)">reader
</A></B>(int
bufferSize)
</CODE>
<BR>
Returns a buffered reader for reading this file as characters.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.BufferedReader
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader(int, java.lang.String)">reader
</A></B>(int
bufferSize,
java.lang.String
charset)
</CODE>
<BR>
Returns a buffered reader for reading this file as characters.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.Reader
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader(java.lang.String)">reader
</A></B>(java.lang.String
charset)
</CODE>
<BR>
Returns a reader for reading this file as characters.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readString()">readString
</A></B>()
</CODE>
<BR>
Reads the entire file into a string using the platform's default charset.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readString(java.lang.String)">readString
</A></B>(java.lang.String
charset)
</CODE>
<BR>
Reads the entire file into a string using the specified charset.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#sibling(java.lang.String)">sibling
</A></B>(java.lang.String
name)
</CODE>
<BR>
Returns a handle to the sibling with the specified name.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#tempDirectory(java.lang.String)">tempDirectory
</A></B>(java.lang.String
prefix)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#tempFile(java.lang.String)">tempFile
</A></B>(java.lang.String
prefix)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#toString()">toString
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#type()">type
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.OutputStream
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#write(boolean)">write
</A></B>(boolean
append)
</CODE>
<BR>
Returns a stream for writing to this file.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#write(java.io.InputStream, boolean)">write
</A></B>(java.io.InputStream
input,
boolean
append)
</CODE>
<BR>
Reads the remaining bytes from the specified stream and writes them to this file.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeBytes(byte[], boolean)">writeBytes
</A></B>(byte[]
bytes,
boolean
append)
</CODE>
<BR>
Writes the specified bytes to the file.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeBytes(byte[], int, int, boolean)">writeBytes
</A></B>(byte[]
bytes,
int
offset,
int
length,
boolean
append)
</CODE>
<BR>
Writes the specified bytes to the file.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.Writer
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writer(boolean)">writer
</A></B>(boolean
append)
</CODE>
<BR>
Returns a writer for writing to this file using the default charset.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.io.Writer
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writer(boolean, java.lang.String)">writer
</A></B>(boolean
append,
java.lang.String
charset)
</CODE>
<BR>
Returns a writer for writing to this file.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeString(java.lang.String, boolean)">writeString
</A></B>(java.lang.String
string,
boolean
append)
</CODE>
<BR>
Writes the specified string to the file using the default charset.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeString(java.lang.String, boolean, java.lang.String)">writeString
</A></B>(java.lang.String
string,
boolean
append,
java.lang.String
charset)
</CODE>
<BR>
Writes the specified string to the file as UTF-8.
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object
</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="file"><!-- --></A><H3>
file
</H3>
<PRE>
protected java.io.File
<B>file
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="type"><!-- --></A><H3>
type
</H3>
<PRE>
protected
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A> <B>type
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="FileHandle()"><!-- --></A><H3>
FileHandle
</H3>
<PRE>
protected
<B>FileHandle
</B>()
</PRE>
<DL>
</DL>
<HR>
<A NAME="FileHandle(java.lang.String)"><!-- --></A><H3>
FileHandle
</H3>
<PRE>
public
<B>FileHandle
</B>(java.lang.String
fileName)
</PRE>
<DL>
<DD>Creates a new absolute FileHandle for the file name. Use this for tools on the desktop that don't need any of the backends.
Do not use this constructor in case you write something cross-platform. Use the
<A HREF="../../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx"><CODE>Files
</CODE></A> interface instead.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>fileName
</CODE> - the filename.
</DL>
</DL>
<HR>
<A NAME="FileHandle(java.io.File)"><!-- --></A><H3>
FileHandle
</H3>
<PRE>
public
<B>FileHandle
</B>(java.io.File
file)
</PRE>
<DL>
<DD>Creates a new absolute FileHandle for the
<CODE>File
</CODE>. Use this for tools on the desktop that don't need any of the
backends. Do not use this constructor in case you write something cross-platform. Use the
<A HREF="../../../../com/badlogic/gdx/Files.html" title="interface in com.badlogic.gdx"><CODE>Files
</CODE></A> interface instead.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>file
</CODE> - the file.
</DL>
</DL>
<HR>
<A NAME="FileHandle(java.lang.String, com.badlogic.gdx.Files.FileType)"><!-- --></A><H3>
FileHandle
</H3>
<PRE>
protected
<B>FileHandle
</B>(java.lang.String
fileName,
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A> type)
</PRE>
<DL>
</DL>
<HR>
<A NAME="FileHandle(java.io.File, com.badlogic.gdx.Files.FileType)"><!-- --></A><H3>
FileHandle
</H3>
<PRE>
protected
<B>FileHandle
</B>(java.io.File
file,
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A> type)
</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="path()"><!-- --></A><H3>
path
</H3>
<PRE>
public java.lang.String
<B>path
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Returns:
</B><DD>the path of the file as specified on construction, e.g. Gdx.files.internal("dir/file.png") -> dir/file.png. backward
slashes will be replaced by forward slashes.
</DL>
</DD>
</DL>
<HR>
<A NAME="name()"><!-- --></A><H3>
name
</H3>
<PRE>
public java.lang.String
<B>name
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Returns:
</B><DD>the name of the file, without any parent paths.
</DL>
</DD>
</DL>
<HR>
<A NAME="extension()"><!-- --></A><H3>
extension
</H3>
<PRE>
public java.lang.String
<B>extension
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="nameWithoutExtension()"><!-- --></A><H3>
nameWithoutExtension
</H3>
<PRE>
public java.lang.String
<B>nameWithoutExtension
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Returns:
</B><DD>the name of the file, without parent paths or the extension.
</DL>
</DD>
</DL>
<HR>
<A NAME="pathWithoutExtension()"><!-- --></A><H3>
pathWithoutExtension
</H3>
<PRE>
public java.lang.String
<B>pathWithoutExtension
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Returns:
</B><DD>the path and filename without the extension, e.g. dir/dir2/file.png -> dir/dir2/file. backward slashes will be
returned as forward slashes.
</DL>
</DD>
</DL>
<HR>
<A NAME="type()"><!-- --></A><H3>
type
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html" title="enum in com.badlogic.gdx">Files.FileType
</A> <B>type
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="file()"><!-- --></A><H3>
file
</H3>
<PRE>
public java.io.File
<B>file
</B>()
</PRE>
<DL>
<DD>Returns a java.io.File that represents this file handle. Note the returned file will only be usable for
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Absolute"><CODE>Files.FileType.Absolute
</CODE></A> and
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#External"><CODE>Files.FileType.External
</CODE></A> file handles.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="read()"><!-- --></A><H3>
read
</H3>
<PRE>
public java.io.InputStream
<B>read
</B>()
</PRE>
<DL>
<DD>Returns a stream for reading this file as bytes.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="read(int)"><!-- --></A><H3>
read
</H3>
<PRE>
public java.io.BufferedInputStream
<B>read
</B>(int
bufferSize)
</PRE>
<DL>
<DD>Returns a buffered stream for reading this file as bytes.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="reader()"><!-- --></A><H3>
reader
</H3>
<PRE>
public java.io.Reader
<B>reader
</B>()
</PRE>
<DL>
<DD>Returns a reader for reading this file as characters.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="reader(java.lang.String)"><!-- --></A><H3>
reader
</H3>
<PRE>
public java.io.Reader
<B>reader
</B>(java.lang.String
charset)
</PRE>
<DL>
<DD>Returns a reader for reading this file as characters.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="reader(int)"><!-- --></A><H3>
reader
</H3>
<PRE>
public java.io.BufferedReader
<B>reader
</B>(int
bufferSize)
</PRE>
<DL>
<DD>Returns a buffered reader for reading this file as characters.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="reader(int, java.lang.String)"><!-- --></A><H3>
reader
</H3>
<PRE>
public java.io.BufferedReader
<B>reader
</B>(int
bufferSize,
java.lang.String
charset)
</PRE>
<DL>
<DD>Returns a buffered reader for reading this file as characters.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="readString()"><!-- --></A><H3>
readString
</H3>
<PRE>
public java.lang.String
<B>readString
</B>()
</PRE>
<DL>
<DD>Reads the entire file into a string using the platform's default charset.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="readString(java.lang.String)"><!-- --></A><H3>
readString
</H3>
<PRE>
public java.lang.String
<B>readString
</B>(java.lang.String
charset)
</PRE>
<DL>
<DD>Reads the entire file into a string using the specified charset.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="readBytes()"><!-- --></A><H3>
readBytes
</H3>
<PRE>
public byte[]
<B>readBytes
</B>()
</PRE>
<DL>
<DD>Reads the entire file into a byte array.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="readBytes(byte[], int, int)"><!-- --></A><H3>
readBytes
</H3>
<PRE>
public int
<B>readBytes
</B>(byte[]
bytes,
int
offset,
int
size)
</PRE>
<DL>
<DD>Reads the entire file into the byte array. The byte array must be big enough to hold the file's data.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>bytes
</CODE> - the array to load the file into
<DD><CODE>offset
</CODE> - the offset to start writing bytes
<DD><CODE>size
</CODE> - the number of bytes to read, see
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#length()"><CODE>length()
</CODE></A>
<DT><B>Returns:
</B><DD>the number of read bytes
</DL>
</DD>
</DL>
<HR>
<A NAME="write(boolean)"><!-- --></A><H3>
write
</H3>
<PRE>
public java.io.OutputStream
<B>write
</B>(boolean
append)
</PRE>
<DL>
<DD>Returns a stream for writing to this file. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
</DL>
</DD>
</DL>
<HR>
<A NAME="write(java.io.InputStream, boolean)"><!-- --></A><H3>
write
</H3>
<PRE>
public void
<B>write
</B>(java.io.InputStream
input,
boolean
append)
</PRE>
<DL>
<DD>Reads the remaining bytes from the specified stream and writes them to this file. The stream is closed. Parent directories
will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
</DL>
</DD>
</DL>
<HR>
<A NAME="writer(boolean)"><!-- --></A><H3>
writer
</H3>
<PRE>
public java.io.Writer
<B>writer
</B>(boolean
append)
</PRE>
<DL>
<DD>Returns a writer for writing to this file using the default charset. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
</DL>
</DD>
</DL>
<HR>
<A NAME="writer(boolean, java.lang.String)"><!-- --></A><H3>
writer
</H3>
<PRE>
public java.io.Writer
<B>writer
</B>(boolean
append,
java.lang.String
charset)
</PRE>
<DL>
<DD>Returns a writer for writing to this file. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
<DD><CODE>charset
</CODE> - May be null to use the default charset.
</DL>
</DD>
</DL>
<HR>
<A NAME="writeString(java.lang.String, boolean)"><!-- --></A><H3>
writeString
</H3>
<PRE>
public void
<B>writeString
</B>(java.lang.String
string,
boolean
append)
</PRE>
<DL>
<DD>Writes the specified string to the file using the default charset. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
</DL>
</DD>
</DL>
<HR>
<A NAME="writeString(java.lang.String, boolean, java.lang.String)"><!-- --></A><H3>
writeString
</H3>
<PRE>
public void
<B>writeString
</B>(java.lang.String
string,
boolean
append,
java.lang.String
charset)
</PRE>
<DL>
<DD>Writes the specified string to the file as UTF-8. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
<DD><CODE>charset
</CODE> - May be null to use the default charset.
</DL>
</DD>
</DL>
<HR>
<A NAME="writeBytes(byte[], boolean)"><!-- --></A><H3>
writeBytes
</H3>
<PRE>
public void
<B>writeBytes
</B>(byte[]
bytes,
boolean
append)
</PRE>
<DL>
<DD>Writes the specified bytes to the file. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
</DL>
</DD>
</DL>
<HR>
<A NAME="writeBytes(byte[], int, int, boolean)"><!-- --></A><H3>
writeBytes
</H3>
<PRE>
public void
<B>writeBytes
</B>(byte[]
bytes,
int
offset,
int
length,
boolean
append)
</PRE>
<DL>
<DD>Writes the specified bytes to the file. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>append
</CODE> - If false, this file will be overwritten if it exists, otherwise it will be appended.
</DL>
</DD>
</DL>
<HR>
<A NAME="list()"><!-- --></A><H3>
list
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A>[]
<B>list
</B>()
</PRE>
<DL>
<DD>Returns the paths to the children of this directory. Returns an empty list if this file handle represents a file and not a
directory. On the desktop, an
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A> handle to a directory on the classpath will return a zero length
array.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="list(java.lang.String)"><!-- --></A><H3>
list
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A>[]
<B>list
</B>(java.lang.String
suffix)
</PRE>
<DL>
<DD>Returns the paths to the children of this directory with the specified suffix. Returns an empty list if this file handle
represents a file and not a directory. On the desktop, an
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A> handle to a directory on the classpath
will return a zero length array.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isDirectory()"><!-- --></A><H3>
isDirectory
</H3>
<PRE>
public boolean
<B>isDirectory
</B>()
</PRE>
<DL>
<DD>Returns true if this file is a directory. Always returns false for classpath files. On Android, an
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A>
handle to an empty directory will return false. On the desktop, an
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A> handle to a directory on the
classpath will return false.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="child(java.lang.String)"><!-- --></A><H3>
child
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> <B>child
</B>(java.lang.String
name)
</PRE>
<DL>
<DD>Returns a handle to the child with the specified name.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="sibling(java.lang.String)"><!-- --></A><H3>
sibling
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> <B>sibling
</B>(java.lang.String
name)
</PRE>
<DL>
<DD>Returns a handle to the sibling with the specified name.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="parent()"><!-- --></A><H3>
parent
</H3>
<PRE>
public
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> <B>parent
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="mkdirs()"><!-- --></A><H3>
mkdirs
</H3>
<PRE>
public void
<B>mkdirs
</B>()
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="exists()"><!-- --></A><H3>
exists
</H3>
<PRE>
public boolean
<B>exists
</B>()
</PRE>
<DL>
<DD>Returns true if the file exists. On Android, a
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Classpath"><CODE>Files.FileType.Classpath
</CODE></A> or
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A> handle to a directory
will always return false.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="delete()"><!-- --></A><H3>
delete
</H3>
<PRE>
public boolean
<B>delete
</B>()
</PRE>
<DL>
<DD>Deletes this file or empty directory and returns success. Will not delete a directory that has children.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="deleteDirectory()"><!-- --></A><H3>
deleteDirectory
</H3>
<PRE>
public boolean
<B>deleteDirectory
</B>()
</PRE>
<DL>
<DD>Deletes this file or directory and all children, recursively.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="emptyDirectory()"><!-- --></A><H3>
emptyDirectory
</H3>
<PRE>
public void
<B>emptyDirectory
</B>()
</PRE>
<DL>
<DD>Deletes all children of this directory, recursively.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="emptyDirectory(boolean)"><!-- --></A><H3>
emptyDirectory
</H3>
<PRE>
public void
<B>emptyDirectory
</B>(boolean
preserveTree)
</PRE>
<DL>
<DD>Deletes all children of this directory, recursively. Optionally preserving the folder structure.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="copyTo(com.badlogic.gdx.files.FileHandle)"><!-- --></A><H3>
copyTo
</H3>
<PRE>
public void
<B>copyTo
</B>(
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> dest)
</PRE>
<DL>
<DD>Copies this file or directory to the specified file or directory. If this handle is a file, then 1) if the destination is a
file, it is overwritten, or 2) if the destination is a directory, this file is copied into it, or 3) if the destination
doesn't exist,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#mkdirs()"><CODE>mkdirs()
</CODE></A> is called on the destination's parent and this file is copied into it with a new name. If
this handle is a directory, then 1) if the destination is a file, GdxRuntimeException is thrown, or 2) if the destination is
a directory, this directory is copied into it recursively, overwriting existing files, or 3) if the destination doesn't
exist,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#mkdirs()"><CODE>mkdirs()
</CODE></A> is called on the destination and this directory is copied into it recursively.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="moveTo(com.badlogic.gdx.files.FileHandle)"><!-- --></A><H3>
moveTo
</H3>
<PRE>
public void
<B>moveTo
</B>(
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> dest)
</PRE>
<DL>
<DD>Moves this file to the specified file, overwriting the file if it already exists.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="length()"><!-- --></A><H3>
length
</H3>
<PRE>
public long
<B>length
</B>()
</PRE>
<DL>
<DD>Returns the length in bytes of this file, or 0 if this file is a directory, does not exist, or the size cannot otherwise be
determined.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="lastModified()"><!-- --></A><H3>
lastModified
</H3>
<PRE>
public long
<B>lastModified
</B>()
</PRE>
<DL>
<DD>Returns the last modified time in milliseconds for this file. Zero is returned if the file doesn't exist. Zero is returned
for
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Classpath"><CODE>Files.FileType.Classpath
</CODE></A> files. On Android, zero is returned for
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A> files. On the desktop, zero
is returned for
<A HREF="../../../../com/badlogic/gdx/Files.FileType.html#Internal"><CODE>Files.FileType.Internal
</CODE></A> files on the classpath.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString
</H3>
<PRE>
public java.lang.String
<B>toString
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE>toString
</CODE> in class
<CODE>java.lang.Object
</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="tempFile(java.lang.String)"><!-- --></A><H3>
tempFile
</H3>
<PRE>
public static
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> <B>tempFile
</B>(java.lang.String
prefix)
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="tempDirectory(java.lang.String)"><!-- --></A><H3>
tempDirectory
</H3>
<PRE>
public static
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A> <B>tempDirectory
</B>(java.lang.String
prefix)
</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FileHandle.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html" title="class in com.badlogic.gdx.files"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/files/FileHandle.html" target="_top"><B>FRAMES
</B></A>
<A HREF="FileHandle.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#field_summary">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
<A HREF="#field_detail">FIELD
</A> |
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<div style="font-size:9pt"><i>
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</BODY>
</HTML>