<!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 Jun 03 02:18:11 CEST 2012 -->
<TITLE>
FileHandleStream (libgdx API)
</TITLE>
<META NAME="date" CONTENT="2012-06-03">
<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="FileHandleStream (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/FileHandleStream.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">
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files"><B>PREV CLASS
</B></A>
NEXT CLASS
</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/files/FileHandleStream.html" target="_top"><B>FRAMES
</B></A>
<A HREF="FileHandleStream.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="#fields_inherited_from_class_com.badlogic.gdx.files.FileHandle">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:
FIELD
|
<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 FileHandleStream
</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">com.badlogic.gdx.files.FileHandle
</A>
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.files.FileHandleStream
</B>
</PRE>
<HR>
<DL>
<DT><PRE>public abstract class
<B>FileHandleStream
</B><DT>extends
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></DL>
</PRE>
<P>
A FileHandle intended to be subclassed for the purpose of implementing
<A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html#read()"><CODE>read()
</CODE></A> and/or
<A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html#write(boolean)"><CODE>write(boolean)
</CODE></A>. Methods
that would manipulate the file instead throw UnsupportedOperationException.
<P>
<P>
<DL>
<DT><B>Author:
</B></DT>
<DD>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>
</TABLE>
<A NAME="fields_inherited_from_class_com.badlogic.gdx.files.FileHandle"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.badlogic.gdx.files.
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#file">file
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#type">type
</A></CODE></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><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html#FileHandleStream(java.lang.String)">FileHandleStream
</A></B>(java.lang.String
path)
</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/FileHandleStream.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/FileHandleStream.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/FileHandleStream.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/FileHandleStream.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> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.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> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.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/FileHandleStream.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/FileHandleStream.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> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.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/FileHandleStream.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> <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/FileHandleStream.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.io.InputStream
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.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.OutputStream
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/files/FileHandleStream.html#write(boolean)">write
</A></B>(boolean
overwrite)
</CODE>
<BR>
Returns a stream for writing to this file.
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_com.badlogic.gdx.files.FileHandle"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.badlogic.gdx.files.
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#extension()">extension
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#file()">file
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#lastModified()">lastModified
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#list(java.lang.String)">list
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#name()">name
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#nameWithoutExtension()">nameWithoutExtension
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#path()">path
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#pathWithoutExtension()">pathWithoutExtension
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#read(int)">read
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readBytes()">readBytes
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readBytes(byte[], int, int)">readBytes
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader()">reader
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader(int)">reader
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader(int, java.lang.String)">reader
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#reader(java.lang.String)">reader
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readString()">readString
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#readString(java.lang.String)">readString
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#tempDirectory(java.lang.String)">tempDirectory
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#tempFile(java.lang.String)">tempFile
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#toString()">toString
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#type()">type
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#write(java.io.InputStream, boolean)">write
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeBytes(byte[], boolean)">writeBytes
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeBytes(byte[], int, int, boolean)">writeBytes
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writer(boolean)">writer
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writer(boolean, java.lang.String)">writer
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeString(java.lang.String, boolean)">writeString
</A>,
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#writeString(java.lang.String, boolean, java.lang.String)">writeString
</A></CODE></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>
<!-- ========= 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="FileHandleStream(java.lang.String)"><!-- --></A><H3>
FileHandleStream
</H3>
<PRE>
public
<B>FileHandleStream
</B>(java.lang.String
path)
</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="isDirectory()"><!-- --></A><H3>
isDirectory
</H3>
<PRE>
public boolean
<B>isDirectory
</B>()
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#isDirectory()">FileHandle
</A></CODE></B></DD>
<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>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#isDirectory()">isDirectory
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="length()"><!-- --></A><H3>
length
</H3>
<PRE>
public long
<B>length
</B>()
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#length()">FileHandle
</A></CODE></B></DD>
<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>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#length()">length
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="exists()"><!-- --></A><H3>
exists
</H3>
<PRE>
public boolean
<B>exists
</B>()
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#exists()">FileHandle
</A></CODE></B></DD>
<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>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#exists()">exists
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<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><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#child(java.lang.String)">FileHandle
</A></CODE></B></DD>
<DD>Returns a handle to the child with the specified name.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#child(java.lang.String)">child
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<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>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#parent()">parent
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="read()"><!-- --></A><H3>
read
</H3>
<PRE>
public java.io.InputStream
<B>read
</B>()
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#read()">FileHandle
</A></CODE></B></DD>
<DD>Returns a stream for reading this file as bytes.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#read()">read
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="write(boolean)"><!-- --></A><H3>
write
</H3>
<PRE>
public java.io.OutputStream
<B>write
</B>(boolean
overwrite)
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#write(boolean)">FileHandle
</A></CODE></B></DD>
<DD>Returns a stream for writing to this file. Parent directories will be created if necessary.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#write(boolean)">write
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>overwrite
</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><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#list()">FileHandle
</A></CODE></B></DD>
<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>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#list()">list
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="mkdirs()"><!-- --></A><H3>
mkdirs
</H3>
<PRE>
public void
<B>mkdirs
</B>()
</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#mkdirs()">mkdirs
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="delete()"><!-- --></A><H3>
delete
</H3>
<PRE>
public boolean
<B>delete
</B>()
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#delete()">FileHandle
</A></CODE></B></DD>
<DD>Deletes this file or empty directory and returns success. Will not delete a directory that has children.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#delete()">delete
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="deleteDirectory()"><!-- --></A><H3>
deleteDirectory
</H3>
<PRE>
public boolean
<B>deleteDirectory
</B>()
</PRE>
<DL>
<DD><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#deleteDirectory()">FileHandle
</A></CODE></B></DD>
<DD>Deletes this file or directory and all children, recursively.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#deleteDirectory()">deleteDirectory
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<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><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#copyTo(com.badlogic.gdx.files.FileHandle)">FileHandle
</A></CODE></B></DD>
<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>FileHandle.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>FileHandle.mkdirs()
</CODE></A> is called on the destination and this directory is copied into it recursively.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#copyTo(com.badlogic.gdx.files.FileHandle)">copyTo
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<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><B>Description copied from class:
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#moveTo(com.badlogic.gdx.files.FileHandle)">FileHandle
</A></CODE></B></DD>
<DD>Moves this file to the specified file, overwriting the file if it already exists.
<P>
<DD><DL>
<DT><B>Overrides:
</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html#moveTo(com.badlogic.gdx.files.FileHandle)">moveTo
</A></CODE> in class
<CODE><A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle
</A></CODE></DL>
</DD>
<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/FileHandleStream.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">
<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files"><B>PREV CLASS
</B></A>
NEXT CLASS
</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/files/FileHandleStream.html" target="_top"><B>FRAMES
</B></A>
<A HREF="FileHandleStream.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="#fields_inherited_from_class_com.badlogic.gdx.files.FileHandle">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:
FIELD
|
<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>