MCPcopy Create free account
hub / github.com/apache/solr / getByte

Method getByte

solr/core/src/java/org/apache/solr/search/StrParser.java:167–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 public byte getByte() {
168 eatws();
169 char[] arr = new char[end - pos];
170 int i;
171 for (i = 0; i < arr.length; i++) {
172 char ch = val.charAt(pos);
173 if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-') {
174 pos++;
175 arr[i] = ch;
176 } else {
177 break;
178 }
179 }
180
181 return Byte.parseByte(new String(arr, 0, i));
182 }
183
184 public String getId() throws SyntaxError {
185 return getId("Expected identifier");

Callers 1

parseVectorMethod · 0.45

Calls 2

eatwsMethod · 0.95
charAtMethod · 0.45

Tested by

no test coverage detected