Class AppStorageDataSource

  • All Implemented Interfaces:
    com.powsybl.commons.datasource.DataSource, com.powsybl.commons.datasource.ReadOnlyDataSource

    public class AppStorageDataSource
    extends Object
    implements com.powsybl.commons.datasource.DataSource
    A datasource corresponding to a data blob stored in the file system. A data blob is associated to a node and a name identifying it among data blobs of this node.
    Author:
    Geoffroy Jamgotchian
    • Constructor Detail

    • Method Detail

      • getBaseName

        public String getBaseName()
        Specified by:
        getBaseName in interface com.powsybl.commons.datasource.ReadOnlyDataSource
      • newOutputStream

        public OutputStream newOutputStream​(String suffix,
                                            String ext,
                                            boolean append)
        Specified by:
        newOutputStream in interface com.powsybl.commons.datasource.DataSource
      • newOutputStream

        public OutputStream newOutputStream​(String fileName,
                                            boolean append)
        Specified by:
        newOutputStream in interface com.powsybl.commons.datasource.DataSource
      • exists

        public boolean exists​(String suffix,
                              String ext)
        Specified by:
        exists in interface com.powsybl.commons.datasource.ReadOnlyDataSource
      • exists

        public boolean exists​(String fileName)
        Specified by:
        exists in interface com.powsybl.commons.datasource.ReadOnlyDataSource
      • newInputStream

        public InputStream newInputStream​(String fileName)
                                   throws IOException
        Specified by:
        newInputStream in interface com.powsybl.commons.datasource.ReadOnlyDataSource
        Throws:
        IOException
      • listNames

        public Set<String> listNames​(String regex)
                              throws IOException
        Specified by:
        listNames in interface com.powsybl.commons.datasource.ReadOnlyDataSource
        Throws:
        IOException