File tree Expand file tree Collapse file tree 2 files changed +3
-57
lines changed
extensions/webdav/src/main/java/org/exist/webdav Expand file tree Collapse file tree 2 files changed +3
-57
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2626import com .bradmcevoy .http .webdav .DefaultUserAgentHelper ;
2727import com .bradmcevoy .http .webdav .UserAgentHelper ;
2828import org .apache .commons .io .IOUtils ;
29+ import org .apache .commons .io .output .CountingOutputStream ;
30+ import org .apache .commons .io .output .NullOutputStream ;
2931import org .exist .EXistException ;
3032import org .exist .security .PermissionDeniedException ;
3133import org .exist .security .Subject ;
@@ -248,7 +250,7 @@ public Long getContentLength() {
248250 }
249251
250252 // Stream document to '/dev/null' and count bytes
251- try (final ByteCountOutputStream counter = new ByteCountOutputStream ( )) {
253+ try (final CountingOutputStream counter = new CountingOutputStream ( NullOutputStream . NULL_OUTPUT_STREAM )) {
252254 existDocument .stream (counter );
253255 size = counter .getByteCount ();
254256 } catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments