encapsulation
true
True
151152153154155156157158159160161
byte[] subBoundary = subContentType.substring( subContentType .indexOf("boundary=")+9).getBytes(); multi.setBoundary(subBoundary); boolean nextSubPart = multi.skipPreamble(); while (nextSubPart) { headers = parseHeaders(multi.readHeaders()); if (getFileName(headers) != null) {
134135136137138139140141142143144
byte[] boundary = contentType.substring( contentType.indexOf("boundary=")+9).getBytes(); InputStream input = (InputStream)req.getInputStream(); MultipartStream multi = new MultipartStream(input, boundary); boolean nextPart = multi.skipPreamble(); while(nextPart) { Map headers = parseHeaders(multi.readHeaders()); String fieldName = getFieldName(headers); if (fieldName != null)
127128129130131132133134135136137
144145146147148149150151152153154