MCPcopy Index your code
hub / github.com/apache/tomcat / getEnd

Method getEnd

java/org/apache/catalina/servlets/DefaultServlet.java:1451–1458  ·  view source on GitHub ↗
(Ranges.Entry range, long length)

Source from the content-addressed store, hash-verified

1449 }
1450
1451 private static long getEnd(Ranges.Entry range, long length) {
1452 long end = range.getEnd();
1453 if (range.getStart() == -1 || end == -1 || end >= length) {
1454 return length - 1;
1455 } else {
1456 return end;
1457 }
1458 }
1459
1460 private boolean pathEndsWithCompressedExtension(String path) {
1461 for (CompressionFormat format : compressionFormats) {

Callers 15

serveResourceMethod · 0.95
validateMethod · 0.95
checkSendfileMethod · 0.95
copyMethod · 0.95
writeMethod · 0.45
prepareRequestMethod · 0.45
doReadMethod · 0.45
isFinishedMethod · 0.45
validateRequestMethod · 0.45
appendBytesMethod · 0.45
internalMapMethod · 0.45
internalMapWrapperMethod · 0.45

Calls 1

getStartMethod · 0.45

Tested by

no test coverage detected