public class ObjectSample extends Object
This example shows how to use putObject and getObject methods.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
getObject(String project,
String logStore,
String objectName)
Example 3: Get an object
|
void |
getObjectWithTryWithResources(String project,
String logStore,
String objectName)
Example 4: Get an object using try-with-resources
|
static void |
main(String[] args) |
void |
putObjectWithHeaders(String project,
String logStore,
String objectName)
Example 2: Put an object with custom headers
|
void |
putSimpleObject(String project,
String logStore,
String objectName)
Example 1: Put a simple text object
|
public static void main(String[] args)
public void putSimpleObject(String project, String logStore, String objectName) throws LogException
LogExceptionpublic void putObjectWithHeaders(String project, String logStore, String objectName) throws LogException
LogExceptionpublic void getObject(String project, String logStore, String objectName) throws LogException, IOException
public void getObjectWithTryWithResources(String project, String logStore, String objectName) throws LogException, IOException
Copyright © 2026. All Rights Reserved.