• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Deprecated Methods and Reading file

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I realize I should have done this earlier, but I set out to work on my search function w/o fixing the deprecated methods. The search, though, never succeeds because of all the entries are followed by whitespace characters(at least thats what I think it is, appears like a box on my OS). Does this have something to do with the deprecated read method? Read the API breifly, it said the method does not read the bytes correctly,etc.
Just a simple yes or no would suffice
Thanks
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Adam,
Actually it has to do with padding of the fixed field size of the db. Those "boxes" you see are ASCII nulls ('\0'). All you need to do is trim() all the Strings to get rid of the "boxes".
Hope this helps
Michael Morris
 
Adam Roberts
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhh
Okay thanks again for your help with my silly q's
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic