Interface FileWebService

  • All Known Implementing Classes:
    FileWebServiceImpl

    public interface FileWebService
    Author:
    zaporozhec
    • Method Detail

      • getFile

        String getFile​(String fName)
        get text file by Name or relative path
        Parameters:
        fName - - name of file
        Returns:
        - file content in String container
      • saveFile

        File saveFile​(String fileName,
                      String body)
        Save #body to text file named #fileName. if file exists this method overwrites old one
        Parameters:
        fileName - - name of file to save
        body - - the content of text file
        Returns:
        - File to created file, null - if any errors are happend