1 15 package org.apache.tapestry.multipart; 16 17 import java.io.File ; 18 19 import org.apache.hivemind.impl.MessageFormatter; 20 21 25 class MultipartMessages 26 { 27 protected static MessageFormatter _formatter = new MessageFormatter(MultipartMessages.class, 28 "MultipartStrings"); 29 30 static String unableToDecode(Throwable cause) 31 { 32 return _formatter.format("unable-to-decode", cause); 33 } 34 35 static String unsupportedEncoding(String encoding, Throwable cause) 36 { 37 return _formatter.format("unsupported-encoding", encoding, cause); 38 } 39 40 static String unableToOpenContentFile(UploadPart part, Throwable cause) 41 { 42 return _formatter.format("unable-to-open-content-file", part.getFilePath(), cause); 43 } 44 45 static String writeFailure(File file, Throwable cause) 46 { 47 return _formatter.format("write-failure", file, cause); 48 } 49 50 } | Popular Tags |