/** * <p>getTempDir</p> * * @return a {@link java.io.File} object. */ public File getTempDir() { assertInitialized(); return m_tempDir; }
public void expectingFileWithPrefix(File parent, String prefix, String... suffixesToExclude) { if (parent == null) { throw new IllegalArgumentException("parent argument cannot be null"); } if (prefix == null) { throw new IllegalArgumentException("prefix argument cannot be null"); } assertInitialized(); internalExpectingFileWithPrefix(parent, prefix, suffixesToExclude); }
/** * <p>expecting</p> * * @param name a {@link java.lang.String} object. * @return a {@link java.io.File} object. */ public File expecting(String name) { if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } assertInitialized(); return internalExpecting(m_tempDir, name); }
/** * <p>tempFile</p> * * @param name a {@link java.lang.String} object. * @return a {@link java.io.File} object. * @throws java.io.IOException if any. */ public File tempFile(String name) throws IOException { if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } assertInitialized(); return internalTempFile(m_tempDir, name); }
/** * <p>expecting</p> * * @param parent a {@link java.io.File} object. * @param name a {@link java.lang.String} object. * @return a {@link java.io.File} object. */ public File expecting(File parent, String name) { if (parent == null) { throw new IllegalArgumentException("parent argument cannot be null"); } if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } assertInitialized(); return internalExpecting(parent, name); }
/** * <p>tempFile</p> * * @param parent a {@link java.io.File} object. * @param name a {@link java.lang.String} object. * @return a {@link java.io.File} object. * @throws java.io.IOException if any. */ public File tempFile(File parent, String name) throws IOException { if (parent == null) { throw new IllegalArgumentException("parent argument cannot be null"); } if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } assertInitialized(); return internalTempFile(parent, name); }
/** * <p>tempFile</p> * * @param name a {@link java.lang.String} object. * @param contents a {@link java.lang.String} object. * @return a {@link java.io.File} object. * @throws java.io.IOException if any. */ public File tempFile(String name, String contents) throws IOException { if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } if (contents == null) { throw new IllegalArgumentException("contents argument cannot be null"); } assertInitialized(); return internalTempFile(m_tempDir, name, contents); }
/** * <p>tempDir</p> * * @param parent a {@link java.io.File} object. * @param name a {@link java.lang.String} object. * @return a {@link java.io.File} object. * @throws java.io.IOException if any. */ public File tempDir(File parent, String name) throws IOException { if (parent == null) { throw new IllegalArgumentException("parent argument cannot be null"); } if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } assertInitialized(); return internalTempDir(parent, name); }
/** * <p>tempFile</p> * * @param parent a {@link java.io.File} object. * @param name a {@link java.lang.String} object. * @param contents a {@link java.lang.String} object. * @return a {@link java.io.File} object. * @throws java.io.IOException if any. */ public File tempFile(File parent, String name, String contents) throws IOException { if (parent == null) { throw new IllegalArgumentException("parent argument cannot be null"); } if (name == null) { throw new IllegalArgumentException("name argument cannot be null"); } if (contents == null) { throw new IllegalArgumentException("contents argument cannot be null"); } assertInitialized(); return internalTempFile(parent, name, contents); }