org.millscript.millscript.loaders
Class SVLoader

java.lang.Object
  extended by org.millscript.millscript.loaders.Loader
      extended by org.millscript.millscript.loaders.ValueLoader
          extended by org.millscript.millscript.loaders.SVLoader
All Implemented Interfaces:
org.millscript.commons.alert.AlertOrigin
Direct Known Subclasses:
CSVLoader, TabLoader, VSVLoader

public class SVLoader
extends ValueLoader

This class implements a separated file format loader for MillScript. The contents of the file are read as text, which is then broken up into lines. Each line is broken up into sections, based on the separator registered with this loader.


Field Summary
 
Fields inherited from class org.millscript.millscript.loaders.Loader
entry, pack, symbol
 
Constructor Summary
SVLoader()
           
 
Method Summary
 java.lang.Object loadValue()
          Causes this loader to load it's value.
 void setDelimeter(java.lang.String d)
          Set the delimiter for quoted fields/values in the separated value file.
 void setSeparator(java.lang.String s)
          Set the separator for this separated value file.
 
Methods inherited from class org.millscript.millscript.loaders.ValueLoader
loadBindings
 
Methods inherited from class org.millscript.millscript.loaders.Loader
getInstance, getLineNumber, getOrigin, getSymbol, newLoader, setContext, setLineNumber, setLoader, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVLoader

public SVLoader()
Method Detail

loadValue

public java.lang.Object loadValue()
                           throws java.io.IOException
Description copied from class: Loader
Causes this loader to load it's value.

Specified by:
loadValue in class Loader
Returns:
the object that was loaded
Throws:
java.io.IOException - if something goes wrong reading from the source
See Also:
Loader.loadValue()

setSeparator

public void setSeparator(java.lang.String s)
Set the separator for this separated value file.

Parameters:
s - the separator for this file

setDelimeter

public void setDelimeter(java.lang.String d)
Set the delimiter for quoted fields/values in the separated value file.

Parameters:
d - the delimiter for quoted values


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.