Class OBSUtils
- java.lang.Object
-
- org.apache.camel.component.huaweicloud.obs.OBSUtils
-
public final class OBSUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
mapObsObject(org.apache.camel.Exchange exchange, com.obs.services.model.ObsObject obsObject)
maps the Obs object along with all its meta-data into exchangestatic byte[]
toBytes(InputStream stream)
Convert input stream to a byte array
-
-
-
Method Detail
-
toBytes
public static byte[] toBytes(InputStream stream) throws IOException
Convert input stream to a byte array- Parameters:
stream
-- Returns:
- Throws:
IOException
-
mapObsObject
public static void mapObsObject(org.apache.camel.Exchange exchange, com.obs.services.model.ObsObject obsObject)
maps the Obs object along with all its meta-data into exchange- Parameters:
exchange
-obsObject
-
-
-