}
private void initialize() throws IOException, FileUploadException {
this.boundaryMarker = getBoundaryMarker(request.getContentType());
if (this.boundaryMarker == null) {
throw new FileUploadException("The request was rejected because no multipart boundary was found");
}
if (HYPHENS.length + boundaryMarker.length + CHUNK_SIZE + CR_LF.length > BUFFER_SIZE) {
throw new FileUploadException("Boundary marker is too long");
}
this.sequenceMatcher = new ByteSequenceMatcher(new ProgressServletInputStream(request.getInputStream()), BUFFER_SIZE);
readProlog();