openlsm.readFile
Class LSMReadFile

java.lang.Object
  extended by openlsm.readFile.LSMReadFile

public class LSMReadFile
extends java.lang.Object

Read one file from XML format to transform it into a new index file in flat format (behaviour of normal import functions from OpenLSD)

Author:
Frederic Bregier LGPL

Constructor Summary
LSMReadFile()
           
 
Method Summary
static java.lang.String getIndex(java.lang.String filename, boolean toFile)
          Get the Index, either to a file (toFile = True) either to the String as return
static void main(java.lang.String[] args)
          Read one file from XML format to transform it into a new index file in flat format (behaviour of normal import functions from OpenLSD).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSMReadFile

public LSMReadFile()
Method Detail

main

public static void main(java.lang.String[] args)
Read one file from XML format to transform it into a new index file in flat format (behaviour of normal import functions from OpenLSD).
Final form:
IDMETIER SENDER RECIPIENTS SUBJECT EMACCOUNT IDOWNER MAILDATE FILE where
- IDMETIER are all day-hour-sender-email_account-random
- Recipents are all To and CC and Sender and email account,
- subject are all Subject and Keyword and Domain

Parameters:
args -

getIndex

public static java.lang.String getIndex(java.lang.String filename,
                                        boolean toFile)
Get the Index, either to a file (toFile = True) either to the String as return

Parameters:
filename - output will ne named "filename"2
toFile -
Returns:
the String if toFile is False or NULL if in error, else NULL