iaaf.util
Class NameFormat

java.lang.Object
  |
  +--iaaf.util.NameFormat

public class NameFormat
extends java.lang.Object

File: NameFormat.java
Description: This class describes image naming formats used in IAAF system
BodySearch generates a single file per scan : ascitext.tif.

Parcel products (66,101) generate xxxB.tif and xxxT.tif TIF file format xxx is integer.

MobileSearch generates files with format xxx.abc xxx is an integer, a can be l or r, b can be t or b, c can be u or l. There will be 2 files per scan xxx.aBc and xxx.aTc eg 101.ltl and 101.lbl.

CargoSearch is different:
xxxxxxxx_yyyyyyyy.za.img xxxxxxxx (site id) and yyyyyyyy (scan_id) are integer , z is 1 or 2, a is B or T Each scan consists of 4 images,
eg :
00001384_00001234.1B.img
00001384_00001234.1T.img
00001384_00001234.2B.img
00001384_00001234.2T.img
Date: February 17, 2001
Copyright (c) 2001 IAAF team, UMass Boston

Version:
1.10
Author:
Zili Xu

Field Summary
static int BodyScan
           
static int CargoScan
           
static java.lang.String[] formats
           
static int MobileScan
           
static int ParcelScan
           
 
Constructor Summary
NameFormat()
           
 
Method Summary
static int getFormatId(java.lang.String s)
           
static int getImgType(java.lang.String formatName, java.lang.String fileName)
           
static java.lang.String getNameInfo(java.lang.String format, java.lang.String file)
          Get string information from give naming format and file name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BodyScan

public static int BodyScan

ParcelScan

public static int ParcelScan

MobileScan

public static int MobileScan

CargoScan

public static int CargoScan

formats

public static java.lang.String[] formats
Constructor Detail

NameFormat

public NameFormat()
Method Detail

getImgType

public static int getImgType(java.lang.String formatName,
                             java.lang.String fileName)
Returns:
int image type if found, -1 if failed.

getNameInfo

public static java.lang.String getNameInfo(java.lang.String format,
                                           java.lang.String file)
Get string information from give naming format and file name
Parameters:
format - IAAF image naming format
file - image file name
Returns:
string information contained in the file name null when naming format and/or filename is illegal

getFormatId

public static int getFormatId(java.lang.String s)
Returns:
format int id if found, -1 otherwise