use java persistence instead
add getFormatName from inputstream


Signed-off-by: pan <pan@eden>