Package net.ballmerlabs.scatterbrainsdk
Object ScatterMessage.Builder.Companion
-
- All Implemented Interfaces:
public class ScatterMessage.Builder.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ScatterMessage.Builder.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final ScatterMessage.BuildernewInstance(ByteArray data)creates a new Builder instance using an inline byte array without a file descriptor final ScatterMessage.BuildernewInstance(File file)creates a new Builder instance using a file. final ScatterMessage.BuildernewInstance(FileDescriptor descriptor, String ext, String mime, String name)creates a new Builder instance using a file. -
-
Method Detail
-
newInstance
final ScatterMessage.Builder newInstance(ByteArray data)
creates a new Builder instance using an inline byte array without a file descriptor
- Parameters:
data- payload for this message
-
newInstance
final ScatterMessage.Builder newInstance(File file)
creates a new Builder instance using a file. Files are copied into the Scatterbrain datastore when this messsage is inserted
- Parameters:
file- file for this message
-
newInstance
final ScatterMessage.Builder newInstance(FileDescriptor descriptor, String ext, String mime, String name)
creates a new Builder instance using a file. Files are copied into the Scatterbrain datastore when this messsage is inserted
- Parameters:
descriptor- file for this messageext- file extensionmime- mime typename- filename for file
-
-
-
-