GCS파일 업로더

public class GCSFileUploader
extends GCSCommon

java.lang.Object
com.android.tradefed.util.GCSCommon
com.android.tradefed.util.GCSFileUploader


Google 클라우드 스토리지(GCS)에 파일 데이터를 업로드하는 파일 업로더입니다.

요약

공개 생성자

GCSFileUploader (File jsonKeyFile)
GCSFileUploader ()

공개 메소드

void uploadFile (String bucketName, String gcsFilename, InputStream fileContents, String contentType, boolean allowOverwrite)

GCS 버킷 파일에 데이터를 업로드합니다.

공개 생성자

GCS파일 업로더

public GCSFileUploader (File jsonKeyFile)

매개변수
jsonKeyFile File

GCS파일 업로더

public GCSFileUploader ()

공개 메소드

업로드파일

public void uploadFile (String bucketName, 
                String gcsFilename, 
                InputStream fileContents, 
                String contentType, 
                boolean allowOverwrite)

GCS 버킷 파일에 데이터를 업로드합니다. gs://[버킷이름]/[gcs파일이름]

매개변수
bucketName String : GCS 버킷 이름

gcsFilename String : 파일 이름.

fileContents InputStream : GCS 파일에 쓸 데이터의 입력스트림입니다.

contentType String : 업로드되는 객체의 MIME 미디어 유형입니다.

allowOverwrite boolean : True이면 이 방법으로 GCS의 파일을 덮어쓸 수 있습니다.