java - Android: Read line from text file ending early of asset -


i'm reading text file on thousands of lines of data in on android. each line want read, split apart, save class , add class arraylist. code currently:

try {     inputstream = this.getassets().open("assets.txt");     bufferedreader reader = new bufferedreader(new inputstreamreader(is));     string line;      while ((line = reader.readline()) != null) {         // use line variable         string[] assetlinesplit = line.split("\\t");          //create object of assets         assetobjectclass assetobjects = new assetobjectclass();          assetobjects.setassetnumber(assetlinesplit[0]);         assetobjects.setdeparea(assetlinesplit[2]);          assetcompletelist.add(assetobjects); //array list          log.i("test", assetobjects.getassetnumber());     }  catch (exception e) {         log.i("test", string.valueof(e));     } 

of i've obtained around place. things seem working fine in terms of setting objects, seem 470, , terminates if finished when not.

i've checked line 470ish, , theres no blank lines or compared others don't know why @ arbitrary amount stops @ or whether has else?

any great!!


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -