Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
    
    OpenOption
    interface OpenOption
    
    
    
      
        
          | Known Indirect Subclasses
              LinkOption.NOFOLLOW_LINKS, StandardOpenOption.APPEND , StandardOpenOption.CREATE , StandardOpenOption.CREATE_NEW , StandardOpenOption.DELETE_ON_CLOSE , StandardOpenOption.DSYNC , StandardOpenOption.READ , StandardOpenOption.SPARSE , StandardOpenOption.SYNC , StandardOpenOption.TRUNCATE_EXISTING , StandardOpenOption.WRITE | 
      
    
    An object that configures how to open or create a file. 
     Objects of this type are used by methods such as newOutputStream, java.nio.file.Files#newByteChannel, java.nio.channels.FileChannel#open, and java.nio.channels.AsynchronousFileChannel#open when opening or creating a file. 
     The StandardOpenOption enumeration type defines the standard options.
    Summary
  
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]