8278356: Improve file creation

Reviewed-by: alanb, rhalade
This commit is contained in:
Brian Burkhalter 2022-01-25 20:16:38 +00:00 committed by Henry Jen
parent ee0743801e
commit 395bb5b7f9
4 changed files with 61 additions and 8 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -87,6 +87,11 @@ abstract class FileSystem {
*/
public abstract boolean isAbsolute(File f);
/**
* Tell whether the given abstract pathname is invalid.
*/
public abstract boolean isInvalid(File f);
/**
* Resolve the given abstract pathname into absolute form. Invoked by the
* getAbsolutePath and getCanonicalPath methods in the File class.