org.hdtourist.model.services.xml
Class FicherosConfigParser

java.lang.Object
  extended by org.hdtourist.model.services.xml.FicherosConfigParser

public class FicherosConfigParser
extends java.lang.Object

El objeto FicherosConfigParser.


Field Summary
private  java.io.File ficheroXml
          The fichero xml.
private static FicherosConfigParser INSTANCE
          The instance.
 
Constructor Summary
private FicherosConfigParser()
          Instancia una nuevo ficheros config parser.
 
Method Summary
private static void createInstance()
          Crea la instancía.
private  java.io.InputStream getInputStream()
          Obtiene el input stream.
static FicherosConfigParser getInstance()
          Gets the single instance of FicherosConfigParser.
 java.util.List<Ciudad> obtenerFicheros()
          Obtener ficheros.
 void setFile(java.io.File ficheroXml)
          Sets the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static FicherosConfigParser INSTANCE
The instance.


ficheroXml

private java.io.File ficheroXml
The fichero xml.

Constructor Detail

FicherosConfigParser

private FicherosConfigParser()
Instancia una nuevo ficheros config parser.

Method Detail

getInstance

public static FicherosConfigParser getInstance()
Gets the single instance of FicherosConfigParser.

Returns:
single instance of FicherosConfigParser

createInstance

private static void createInstance()
Crea la instancía.


obtenerFicheros

public java.util.List<Ciudad> obtenerFicheros()
Obtener ficheros.

Returns:
la lista de ciudades

setFile

public void setFile(java.io.File ficheroXml)
Sets the file.

Parameters:
ficheroXml - the new file

getInputStream

private java.io.InputStream getInputStream()
                                    throws java.io.IOException
Obtiene el input stream.

Returns:
the input stream
Throws:
java.io.IOException - Signals that an I/O exception has occurred.