Microsoft
Software
Hardware
Network
Question : Java typesafe file parser
I have a input file contains Color, Size and Shape like this:
RED LARGE TRIANGLE YELLOW SMALL SQUARE ...
Color would be RED YELLOW BLUE
Size would be LAREG SMALL MEDIUM
Shape would be TRIANGE CICLE SQUARE
All the three classes implements the same interface.
I need three bean classes which are Color, Size and Shape and driver class to read this file and loaded into each bean class and sort them, search them. Also I need make sure typesafe is used to make sure what is read is right. So Enum should be used for the bean classes.
Answer : Java typesafe file parser
this explains reading the file
http://helpdesk.objects.co
m.au/java/
using-scan
ner-to-rea
d-
words-fr
om-text-fi
le
And to convert the strings to enum see here
http://helpdesk.objects.co
m.au/java/
how-do-i-c
onvert-a-
s
tring-to-a
n-enum
Random Solutions
Failing over between Active/Active WAN connections on a Cisco Router
How to block mulitple ports within a range in mmc?
Using cfheader and cfcontent to obfuscate download path.
Jquery NoConflict Issue
How to install Solaris 10 in 2 disks at the same time or 4 disks using zfs, need good documentation on zfs
How to block video and audio streaming in ISA 2006
Will there be a 13" Macbook with an iCore processor anytime soon? Safe to buy C2D?
how do i create a vfp exe which i can call with command line parameters
Mac backup: unsupported file characters
HP dl360 G6 Raid Driver for Windows 2008 64-bit