jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ContentDisposition.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
167 return null; |
167 return null; |
168 |
168 |
169 if (list == null) |
169 if (list == null) |
170 return disposition; |
170 return disposition; |
171 |
171 |
172 StringBuffer sb = new StringBuffer(disposition); |
172 StringBuilder sb = new StringBuilder(disposition); |
173 |
173 |
174 // append the parameter list |
174 // append the parameter list |
175 // use the length of the string buffer + the length of |
175 // use the length of the string buffer + the length of |
176 // the header name formatted as follows "Content-Disposition: " |
176 // the header name formatted as follows "Content-Disposition: " |
177 sb.append(list.toString(sb.length() + 21)); |
177 sb.append(list.toString(sb.length() + 21)); |