GCSFileUploader
public class GCSFileUploader
extends GCSCommon
Google 클라우드 스토리지 (GCS)에 파일 데이터를 업로드하는 파일 업 로더.
요약
공개 방법 |
---|
void | uploadFile (String bucketName, String gcsFilename, InputStream fileContents, String contentType, boolean allowOverwrite) GCS 버킷 파일에 데이터를 업로드합니다. |
공용 생성자
GCSFileUploader
public GCSFileUploader (File jsonKeyFile)
GCSFileUploader
public GCSFileUploader ()
공개 방법
public void uploadFile (String bucketName,
String gcsFilename,
InputStream fileContents,
String contentType,
boolean allowOverwrite)
GCS 버킷 파일에 데이터를 업로드합니다. gs : // [bucketName] / [gcsFileName]
매개 변수 |
---|
bucketName | String : GCS 버킷 이름 |
gcsFilename | String : 파일 이름. |
fileContents | InputStream : GCS 파일에 쓸 데이터의 InputStream. |
contentType | String : 업로드중인 객체의 MIME 미디어 유형입니다. |
allowOverwrite | boolean : True이면이 메소드가 GCS의 파일을 덮어 쓸 수 있습니다. |