Style Intelligence v12.0

inetsoft.uql.text
Class FixedFileInfo

java.lang.Object
  extended by inetsoft.uql.text.FixedFileInfo
All Implemented Interfaces:
TextFileInfo, inetsoft.util.XMLSerializable, Cloneable

public class FixedFileInfo
extends Object
implements TextFileInfo

Descriptor for a fixed-width text file.

Since:
11.0

Field Summary
static int DEF_LENGTH
          Default length for fixed-width fields.
 
Constructor Summary
FixedFileInfo()
          Creates a new instance of FixedFileInfo.
 
Method Summary
 int getLength()
          Gets the total length of a data row.
 int[] getLengths()
          Gets the lengths of the fields in the file.
 void parseXML(Element tag)
          
 void setLength(int length)
          Sets the total length of a data row.
 void setLengths(int[] lengths)
          Sets the lengths of the fields in the file.
 void writeXML(PrintWriter writer)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEF_LENGTH

public static final int DEF_LENGTH
Default length for fixed-width fields.

See Also:
Constant Field Values
Constructor Detail

FixedFileInfo

public FixedFileInfo()
Creates a new instance of FixedFileInfo.

Method Detail

getLength

public final int getLength()
Gets the total length of a data row.

Returns:
the row length.

setLength

public final void setLength(int length)
Sets the total length of a data row.

Parameters:
length - the row length.

getLengths

public final int[] getLengths()
Gets the lengths of the fields in the file.

Returns:
the field lengths.

setLengths

public final void setLengths(int[] lengths)
Sets the lengths of the fields in the file.

Parameters:
lengths - the field lengths.

parseXML

public void parseXML(Element tag)
              throws Exception

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
Exception

writeXML

public void writeXML(PrintWriter writer)

Specified by:
writeXML in interface inetsoft.util.XMLSerializable

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.