jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/packaging/mime/internet/ContentDisposition.java
changeset 33547 e4c76ac38b12
parent 28326 2b9860c0d68a
child 43852 93a527059d8a
equal deleted inserted replaced
33390:d131f4b8433a 33547:e4c76ac38b12
     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));