es.ucm.look.locationProviderWifi.util
Class DeviceReader

java.lang.Object
  extended by es.ucm.look.locationProviderWifi.util.DeviceReader

public class DeviceReader
extends java.lang.Object

File read utilities.


Constructor Summary
DeviceReader()
          Constructor with no specified file.
DeviceReader(java.lang.String s)
          Constructor with an input specified location file
 
Method Summary
 void close()
          Close the file
 java.lang.String getFileName()
           
 java.lang.String getPath()
           
 java.lang.String readln()
          Write a string to the specified file
 void setFileName(java.lang.String fileName)
           
 void setPath(java.lang.String path)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceReader

public DeviceReader()
Constructor with no specified file. The default file location is /sdcard/samples.txt


DeviceReader

public DeviceReader(java.lang.String s)
Constructor with an input specified location file

Parameters:
s - The string contains the file path to read from
Method Detail

close

public void close()
Close the file


getFileName

public java.lang.String getFileName()

getPath

public java.lang.String getPath()

readln

public java.lang.String readln()
Write a string to the specified file


setFileName

public void setFileName(java.lang.String fileName)

setPath

public void setPath(java.lang.String path)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object