com.devexperts.qd.qtp.file
Class FileFormat

java.lang.Object
  extended by com.devexperts.qd.qtp.file.FileFormat

public class FileFormat
extends java.lang.Object

QDS file format specification.


Nested Class Summary
static class FileFormat.Type
           
 
Field Summary
static FileFormat BINARY
           
static FileFormat CSV
           
static FileFormat TEXT
           
 
Method Summary
 AbstractByteArrayComposer createByteArrayComposer(DataScheme scheme)
           
 AbstractByteArrayParser createByteArrayParser(DataScheme scheme)
           
static FileFormat detectFormat(byte[] buffer)
           
 FileFormat.Type getType()
           
 java.lang.String toString()
           
static FileFormat valueOf(java.lang.String desc)
          Construct FileFormat by a given string description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BINARY

public static final FileFormat BINARY

TEXT

public static final FileFormat TEXT

CSV

public static final FileFormat CSV
Method Detail

valueOf

public static FileFormat valueOf(java.lang.String desc)
Construct FileFormat by a given string description. The format description is "binary", "text", or "blob:<record>:<symbol>".

Throws:
InvalidFormatException - when desc has invalid format.

detectFormat

public static FileFormat detectFormat(byte[] buffer)

getType

public FileFormat.Type getType()

createByteArrayParser

public AbstractByteArrayParser createByteArrayParser(DataScheme scheme)

createByteArrayComposer

public AbstractByteArrayComposer createByteArrayComposer(DataScheme scheme)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object