Tag | Date | Blame | Line | Source |
---|---|---|---|---|
FILEUPLOAD_1_3_RC2 | Mon Mar 11 08:24:06 UTC 2013 | 11923a | 35 | @Test |
FILEUPLOAD_1_1 | Fri Mar 07 23:13:14 UTC 2003 | 45336e | 36 | public void testThreeParamConstructor() throws Exception { |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 37 | final String strData = "foobar"; |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 38 | final byte[] contents = strData.getBytes(); |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 39 | InputStream input = new ByteArrayInputStream(contents); |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 40 | byte[] boundary = BOUNDARY_TEXT.getBytes(); |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 41 | int iBufSize = boundary.length; |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 42 | MultipartStream ms = new MultipartStream( |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 43 | input, |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 44 | boundary, |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 45 | iBufSize, |
FILEUPLOAD_1_3_RC1 | Tue Mar 05 21:20:29 UTC 2013 | efb4f0 | 46 | new MultipartStream.ProgressNotifier(null, contents.length)); |
FILEUPLOAD_1_3_RC1 | Wed Mar 06 01:47:58 UTC 2013 | b0e033 | 47 | assertNotNull(ms); |
STRUTS_1_1_B3 | Sat Oct 26 22:42:34 UTC 2002 | 582ecf | 48 | } |
Tag | Date | Blame | Line | Source |
---|---|---|---|---|
commons-fileupload-1.2rc4 | Mon Nov 27 01:06:53 UTC 2006 | b488ef | 120 | ProgressNotifier(ProgressListener pListener, long pContentLength) { |
commons-fileupload-1.2rc4 | Mon Nov 27 01:06:53 UTC 2006 | b488ef | 121 | listener = pListener; |
commons-fileupload-1.2rc4 | Mon Nov 27 01:06:53 UTC 2006 | b488ef | 122 | contentLength = pContentLength; |
commons-fileupload-1.2rc4 | Mon Nov 27 01:06:53 UTC 2006 | b488ef | 123 | } |
Tag | Date | Blame | Line | Source |
---|---|---|---|---|
FILEUPLOAD_1_3_RC1 | Wed Mar 06 08:31:17 UTC 2013 | 556d4d | 189 | protected static final byte[] HEADER_SEPARATOR = { CR, LF, CR, LF }; |
FILEUPLOAD_1_3_RC1 | Wed Mar 06 08:31:17 UTC 2013 | 556d4d | 195 | protected static final byte[] FIELD_SEPARATOR = { CR, LF}; |
FILEUPLOAD_1_3_RC1 | Wed Mar 06 08:31:17 UTC 2013 | 556d4d | 201 | protected static final byte[] STREAM_TERMINATOR = { DASH, DASH}; |
FILEUPLOAD_1_3_RC1 | Wed Mar 06 08:31:17 UTC 2013 | 556d4d | 206 | protected static final byte[] BOUNDARY_PREFIX = { CR, LF, DASH, DASH}; |
commons-fileupload-1.2rc4 | Mon Nov 27 01:06:53 UTC 2006 | b488ef | 325 | ProgressNotifier pNotifier) { |
STRUTS_1_1_B3 | Sun Mar 24 07:05:13 UTC 2002 | 86c629 | 326 | this.input = input; |
STRUTS_1_1_B3 | Sun Mar 24 07:05:13 UTC 2002 | 86c629 | 327 | this.bufSize = bufSize; |
STRUTS_1_1_B3 | Sun Mar 24 07:05:13 UTC 2002 | 86c629 | 328 | this.buffer = new byte[bufSize]; |
commons-fileupload-1.2rc4 | Sun Aug 06 03:14:36 UTC 2006 | 59a351 | 329 | this.notifier = pNotifier; |
FILEUPLOAD_1_1 | Sun Dec 04 06:33:55 UTC 2005 | 8a8c78 | 333 | this.boundary = new byte[boundary.length + BOUNDARY_PREFIX.length]; |
FILEUPLOAD_1_1 | Sun Dec 04 06:33:55 UTC 2005 | 8a8c78 | 334 | this.boundaryLength = boundary.length + BOUNDARY_PREFIX.length; |
commons-fileupload-1.2.1rc1 | Wed Jun 27 00:59:16 UTC 2007 | ec7cbc | 335 | this.keepRegion = this.boundary.length; |
FILEUPLOAD_1_1 | Sun Dec 04 06:33:55 UTC 2005 | 8a8c78 | 336 | System.arraycopy(BOUNDARY_PREFIX, 0, this.boundary, 0, |
FILEUPLOAD_1_1 | Sun Dec 04 06:33:55 UTC 2005 | 8a8c78 | 338 | System.arraycopy(boundary, 0, this.boundary, BOUNDARY_PREFIX.length, |
STRUTS_1_1_B3 | Sun Mar 24 07:05:13 UTC 2002 | 86c629 | 341 | head = 0; |
STRUTS_1_1_B3 | Sun Mar 24 07:05:13 UTC 2002 | 86c629 | 342 | tail = 0; |
STRUTS_1_1_B3 | Sun Mar 24 07:05:13 UTC 2002 | 86c629 | 343 | } |