Roberto Perillo wrote:Howdy, Hmontiel. Welcome to JavaRanch!
Well champ, what happens if you set the FIELD_NAME_BYTES variable to 1?
Pawel Pawlowicz wrote:I used spaces (\u0020). Why? Because the db file provided to me already used this approach. And as I noted in choices.txt I would not expect any field beginning with spaces I just justified using of String.trim() when reading data ;).
Alexandru Dragoi wrote:Ohh...so I guess it depends on the database file you receive with your assignment.
Alexandru Dragoi wrote:What is your opinion about this?
Gautham Kumar wrote:Easpecially the following line the getValue method :
value += (byteArray[i] & 0x000000FF) << shift;
0x000000FF = 255, what exactly are you trying to do in above statement? Are you performing leftshift and reading the file?
Please explain if possible.
Gautham Kumar wrote:I can create my own databasereader and implement all methods of sun interface and use this tool(class) s utility class to read data from the DB file.
Is this an accpetable approach?
Gautham Kumar wrote:I will implement my own version of DBFileReader to read the database file and take some guidance from Roberto's tool.
What's that smell? I think this tiny ad may have stepped in something.
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your databasehttps://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database