public SeekableByteChannel open ( URI path , GoogleCloudStorageReadOptions readOptions ) throws IOException { logger . atFine ( ) . log ( "open(%s, %s)" , path , readOptions ) ; Preconditions . checkNotNull ( path ) ; checkArgument ( ! FileInfo . isDirectoryPath ( path ) , "Cannot open a directory for reading: %s" , path ) ; // Validate the given path. false == do not allow empty object name. StorageResourceId resourceId = pathCodec . validatePathAndGetId ( path , false ) ; return gcs . open ( resourceId , readOptions ) ; }
Opens an object for reading .