play.modules.morphia
Class Blob
java.lang.Object
play.modules.morphia.Blob
- All Implemented Interfaces:
- Model.BinaryField
public class Blob
- extends Object
- implements Model.BinaryField
Blob
public Blob()
Blob
public Blob(InputStream is,
String type)
Blob
public Blob(File inputFile,
String type)
Blob
public Blob(File inputFile)
Blob
public Blob(String id)
delete
public void delete()
findFile
public static GridFSDBFile findFile(String name)
get
public InputStream get()
- Specified by:
get
in interface Model.BinaryField
set
public void set(File file,
String type)
throws IOException
- Throws:
IOException
set
public void set(InputStream is,
String type)
- Specified by:
set
in interface Model.BinaryField
length
public long length()
- Specified by:
length
in interface Model.BinaryField
type
public String type()
- Specified by:
type
in interface Model.BinaryField
exists
public boolean exists()
- Specified by:
exists
in interface Model.BinaryField
delete
public static void delete(String name)
getGridFSFile
public GridFSDBFile getGridFSFile()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012. All Rights Reserved.