@Immutable @Loggable(value=1) public static final class Ocket.Text extends Object implements Ocket
Ocket.Text| Constructor and Description | 
|---|
Ocket.Text(Ocket ocket)
Public ctor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Bucket | 
bucket()
Get bucket we're in. 
 | 
int | 
compareTo(Ocket ocket)  | 
boolean | 
exists()
Check whether this S3 object exists. 
 | 
String | 
key()
Get object key. 
 | 
com.amazonaws.services.s3.model.ObjectMetadata | 
meta()
Object metadata. 
 | 
String | 
read()
Read content as string. 
 | 
void | 
read(OutputStream output)
Read content. 
 | 
void | 
write(InputStream input,
     com.amazonaws.services.s3.model.ObjectMetadata meta)
Write new content to the object. 
 | 
void | 
write(String text)
Write content as string. 
 | 
void | 
write(String text,
     String type)
Write content as string, with a specified content type. 
 | 
@NotNull public String read() throws IOException
IOException - If failspublic void write(@NotNull String text) throws IOException
text - Text to writeIOException - If failspublic void write(@NotNull String text, @NotNull String type) throws IOException
text - Text to writetype - Content typeIOException - If failspublic com.amazonaws.services.s3.model.ObjectMetadata meta()
                                                    throws IOException
Ocketmeta in interface OcketIOException - If failspublic boolean exists()
               throws IOException
Ocketexists in interface OcketIOException - If failspublic void read(OutputStream output) throws IOException
Ocketread in interface Ocketoutput - Where to writeIOException - If failspublic void write(InputStream input, com.amazonaws.services.s3.model.ObjectMetadata meta) throws IOException
Ocketwrite in interface Ocketinput - Where to get contentmeta - Metadata to saveIOException - If failspublic int compareTo(Ocket ocket)
compareTo in interface Comparable<Ocket>Copyright © 2012–2014 jcabi.com. All rights reserved.