Here you can find the source of getTempDir(Object fileID, String fileName)
Parameter | Description |
---|---|
fileID | a parameter |
fileName | a parameter |
public static String getTempDir(Object fileID, String fileName)
//package com.java2s; /**//from w w w .j av a2 s .c o m * @className * * Copyright (c) 2012, Original and/or its affiliates. All rights reserved. * ORIGINAL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.io.File; public class Main { public static final String TEMP_DIR = System.getProperty("java.io.tmpdir"); /** * get email attachment temp store dir * * @param fileID * @param fileName * @return */ public static String getTempDir(Object fileID, String fileName) { // int suffix = fileName.lastIndexOf("."); // return new File(TEMP_DIR, fileID // + (suffix == -1 ? "" : // fileName.substring(suffix))).toURI().toString(); return new File(TEMP_DIR, fileName).toURI().toString(); } }