IOPlugin
Types
Companion
                          
                    Link copied to clipboard
                        Functions
dependsOn 
                          
                    Link copied to clipboard
                        resolveEnvelopeFormat  
                          
                    Link copied to clipboard
                        resolveIOFormat 
                          
                    
                  Link copied to clipboard
                        resolveMetaFormat  
                          
                    Link copied to clipboard
                        fun resolveMetaFormat(name: String, meta: Meta = Meta.EMPTY): MetaFormat?
Content copied to clipboard
Properties
defaultChainTarget
                          
                    
                  Link copied to clipboard
                        defaultTarget
                          
                    
                  Link copied to clipboard
                        envelopeFormatFactories
                          
                    
                  Link copied to clipboard
                        ioFormatFactories
                          
                    
                  Link copied to clipboard
                        metaFormatFactories
                          
                    
                  Link copied to clipboard
                        Extensions
peekFileEnvelopeFormat   
                          
                    Link copied to clipboard
                        Return inferred EnvelopeFormat if only one format could read given file. If no format accepts file, return null. If multiple formats accepts file, throw an error.
readEnvelopeFile  
                          
                    Link copied to clipboard
                        fun IOPlugin.readEnvelopeFile(path: Path, readNonEnvelopes: Boolean = false, formatPicker: IOPlugin.(Path) -> EnvelopeFormat? = IOPlugin::peekFileEnvelopeFormat): Envelope
Content copied to clipboard
Read and envelope from file if the file exists, return null if file does not exist.
readMetaFile  
                          
                    Link copied to clipboard
                        fun IOPlugin.readMetaFile(path: Path, formatOverride: MetaFormat? = null, descriptor: MetaDescriptor? = null): Meta
Content copied to clipboard
Read file containing meta using given formatOverride or file extension to infer meta type. If path is a directory search for file starting with meta in it
resolveIOFormat 
                          
                    
                  Link copied to clipboard
                        writeEnvelopeDirectory  
                          
                    Link copied to clipboard
                        fun IOPlugin.writeEnvelopeDirectory(path: Path, envelope: Envelope, metaFormat: MetaFormatFactory = JsonMetaFormat)
Content copied to clipboard
Write separate meta and data files to given directory path
writeEnvelopeFile  
                          
                    Link copied to clipboard
                        fun IOPlugin.writeEnvelopeFile(path: Path, envelope: Envelope, envelopeFormat: EnvelopeFormat = TaggedEnvelopeFormat, metaFormat: MetaFormatFactory? = null)
Content copied to clipboard
Write envelope file to given path using envelopeFormat and optional metaFormat
writeMetaFile  
                          
                    Link copied to clipboard
                        fun IOPlugin.writeMetaFile(path: Path, meta: Meta, metaFormat: MetaFormatFactory = JsonMetaFormat, descriptor: MetaDescriptor? = null)
Content copied to clipboard
Write meta to file using metaFormat. If path is a directory, write a file with name equals name of metaFormat. Like "meta.json"