Java Temp Directory Get getTempDirValue()

Here you can find the source of getTempDirValue()

Description

Returns with the value of System.getProperty("java.io.tmpdir") .

License

Open Source License

Declaration

private static final String getTempDirValue() 

Method Source Code

//package com.java2s;
/**//from   w  w  w .  ja  va2s.c  o  m
 * Copyright (c) 2016 NumberFour AG.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   NumberFour AG - Initial API and implementation
 */

import static com.google.common.base.Preconditions.checkNotNull;

public class Main {
    /**
     * Returns with the value of {@code System.getProperty("java.io.tmpdir")}. Never {@code null}.
     */
    private static final String getTempDirValue() {
        return checkNotNull(System.getProperty("java.io.tmpdir"), "Null for java.io.tmpdir system property.");
    }
}

Related

  1. getTempDirectoryStr()
  2. getTempDirFile()
  3. getTempDirFilePath(String name)
  4. getTempDirName()
  5. getTempDirURL()
  6. getTempDirWithFileSeparatorSuffix()