Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014 Philip Helger (www.helger.com) philip[at]helger[dot]com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.helger.webbasics.ssh.generic;
public interface IConnectorFileBased <HANDLETYPE, REMOTEITEMTYPE> extends IConnector <HANDLETYPE>
{
  
Receive data from somewhere.

Parameters:
sID ID of the data to be retrieved. E.g. a file name. May not be null.
aOS The output stream to write to. May not be null.
Returns:
com.helger.commons.state.ESuccess
Write data to somewhere.

Parameters:
sID The ID of the artifact to write to. This may e.g. be a file name. May not be null.
aIS The input stream to read from. May not be null.
Returns:
com.helger.commons.state.ESuccess
Change the working directory to the specified directory.

Parameters:
sDirectory The directory to use.
Returns:
com.helger.commons.state.ESuccess
  ESuccess changeWorkingDirectory (@Nonnull String sDirectory);

  
Delete a file in the current directory

Parameters:
sFilename The filename to be deleted.
Returns:
com.helger.commons.state.ESuccess.
  ESuccess deleteFile (String sFilename);

  
List all files in the current directory

Parameters:
aFilter The filter to be used. Maybe null.
aTargetList The list where the result files should be added. May not be null.
Returns:
com.helger.commons.state.ESuccess
  ESuccess listFiles (@Nullable IFilter <REMOTEITEMTYPE> aFilter, @Nonnull List <REMOTEITEMTYPE> aTargetList);
New to GrepCode? Check out our FAQ X