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 26
26
import com .bradmcevoy .http .webdav .DefaultUserAgentHelper ;
27
27
import com .bradmcevoy .http .webdav .UserAgentHelper ;
28
28
import org .apache .commons .io .IOUtils ;
29
+ import org .apache .commons .io .output .CountingOutputStream ;
30
+ import org .apache .commons .io .output .NullOutputStream ;
29
31
import org .exist .EXistException ;
30
32
import org .exist .security .PermissionDeniedException ;
31
33
import org .exist .security .Subject ;
@@ -248,7 +250,7 @@ public Long getContentLength() {
248
250
}
249
251
250
252
// 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 )) {
252
254
existDocument .stream (counter );
253
255
size = counter .getByteCount ();
254
256
} catch (Exception ex ) {
You can’t perform that action at this time.
0 commit comments