com.gridsystems
Class GridXMLDirectorySerializer

java.lang.Object
  extended by com.gridsystems.GridXMLDirectorySerializer

public class GridXMLDirectorySerializer
extends java.lang.Object

GridXMLDirectorySerializer.


Constructor Summary
GridXMLDirectorySerializer(java.io.Writer out)
          Crea un nuevo GridXMLSerializer para escribir sobre un Writer.
GridXMLDirectorySerializer(java.io.Writer out, java.io.FileFilter filter)
          Crea un nuevo GridXMLSerializer para escribir sobre un Writer.
 
Method Summary
 void serialize(boolean properties, java.io.File... dirs)
          Serializes in XML style the information of a directory.
 void serialize(boolean properties, java.lang.String... paths)
          Serializes in XML style the information of a directory.
 void serialize(java.lang.String... dirs)
          Serializes in XML style the information of a directory.
 void serializeDirStructure(java.lang.String[] dirs)
          Deprecated. serialize() methods are now preferred
 void serializeDirStructure(java.lang.String[] dirs, boolean properties)
          Deprecated. serialize() methods are now preferred
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridXMLDirectorySerializer

public GridXMLDirectorySerializer(java.io.Writer out)
Crea un nuevo GridXMLSerializer para escribir sobre un Writer.

Parameters:
out - writer de salida del XML generado

GridXMLDirectorySerializer

public GridXMLDirectorySerializer(java.io.Writer out,
                                  java.io.FileFilter filter)
Crea un nuevo GridXMLSerializer para escribir sobre un Writer.

Parameters:
out - Output writer
filter - Used to filter included files
Method Detail

serializeDirStructure

public void serializeDirStructure(java.lang.String[] dirs)
                           throws java.lang.Exception
Deprecated. serialize() methods are now preferred

It serialize in XML style the information of a directory. All paths must be in java style, using '/' as separator

Parameters:
dirs - Contains the root path to serialize. It must finish with /.
Throws:
java.lang.Exception - if error

serializeDirStructure

public void serializeDirStructure(java.lang.String[] dirs,
                                  boolean properties)
                           throws java.lang.Exception
Deprecated. serialize() methods are now preferred

It serialize in XML style the information of a directory. All paths must be in java style, using '/' as separator

Parameters:
dirs - Contains the root path to serialize. It must finish with /.
properties - If true, file properties will be serialized
Throws:
java.lang.Exception - if error

serialize

public void serialize(java.lang.String... dirs)
               throws java.io.IOException
Serializes in XML style the information of a directory. All paths must be in java style, using '/' as separator

Parameters:
dirs - Contains the root path to serialize. It must finish with /.
Throws:
java.io.IOException - if error

serialize

public void serialize(boolean properties,
                      java.lang.String... paths)
               throws java.io.IOException
Serializes in XML style the information of a directory. All paths must be in java style, using '/' as separator

Parameters:
paths - Contains the root paths to serialize.
properties - If true, file properties will be serialized
Throws:
java.io.IOException - if error

serialize

public void serialize(boolean properties,
                      java.io.File... dirs)
               throws java.io.IOException
Serializes in XML style the information of a directory. All paths must be in java style, using '/' as separator

Parameters:
dirs - Contains the root path to serialize. It must finish with /.
properties - If true, file properties will be serialized
Throws:
java.io.IOException - if error


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.