io.appium.java_client.android.PushesFiles Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
* 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 io.appium.java_client.android;
import io.appium.java_client.InteractsWithFiles;
import java.io.File;
import java.io.IOException;
public interface PushesFiles extends InteractsWithFiles {
/**
* Saves base64 encoded data as a file on the remote mobile device.
*
* @param remotePath Path to file to write data to on remote device
* @param base64Data Base64 encoded byte array of data to write to remote device
*/
void pushFile(String remotePath, byte[] base64Data);
/**
* Saves given file as a file on the remote mobile device.
*
* @param remotePath Path to file to write data to on remote device
* @param file is a file to write to remote device
* @throws IOException when there are problems with a file or current file system
*/
void pushFile(String remotePath, File file) throws IOException;
}