File tree Expand file tree Collapse file tree 2 files changed +226
-105
lines changed
src/main/java/org/microbit/android/partialflashing Expand file tree Collapse file tree 2 files changed +226
-105
lines changed Original file line number Diff line number Diff line change 3
3
import android .util .Log ;
4
4
5
5
import java .io .BufferedReader ;
6
- import java .io .EOFException ;
7
6
import java .io .FileInputStream ;
8
7
import java .io .FileNotFoundException ;
9
8
import java .io .IOException ;
10
9
import java .io .InputStreamReader ;
11
- import java .io .InterruptedIOException ;
12
-
13
- import java .util .*;
14
- import java .util .List ;
15
10
import java .util .ArrayList ;
16
- import java .util .Iterator ;
11
+ import java .util .List ;
12
+ import java .util .ListIterator ;
17
13
18
14
19
15
/**
@@ -130,6 +126,15 @@ public int getRecordAddressFromIndex(int index) throws IOException {
130
126
return getRecordAddress (hexLines .get (index ));
131
127
}
132
128
129
+ /*
130
+ Used to get the data length from a record
131
+ @param Record as a String
132
+ @return Data length as a decimal / # of chars
133
+ */
134
+ public int getRecordDataLengthFromIndex (int index ){
135
+ return getRecordDataLength (hexLines .get (index ));
136
+ }
137
+
133
138
/*
134
139
* Returns segment address from an index
135
140
* @param index
You can’t perform that action at this time.
0 commit comments