@Override public FSDataOutputStream createObject(String objName,String contentType,Map<String,String> metadata,Statistics statistics) throws IOException {
  URL url=new URL(mJossAccount.getAccessURL() + "/" + objName);
  LOG.debug("PUT {}. Content-Type : {}",url.toString(),contentType);
  try {
    return new FSDataOutputStream(new SwiftOutputStream(mJossAccount,url,contentType,metadata,swiftConnectionManager),statistics);
  }
 catch (  IOException e) {
    LOG.error(e.getMessage());
    throw e;
  }
}

@ Override public FSDataOutputStream createObject ( String objName , String contentType , Map < String , String > metadata , Statistics statistics ) throws IOException { URL url = new URL ( mJossAccount . getAccessURL ( ) + "/" + objName ) ; LOG . debug ( "PUT {}. Content-Type : {}" , url . toString ( ) , contentType ) ; try { return new FSDataOutputStream ( new SwiftOutputStream ( mJossAccount , url , contentType , metadata , swiftConnectionManager ) , statistics ) ; } catch ( IOException e ) { LOG . error ( e . getMessage ( ) ) ; throw e ; } }
direct http put request without joss package
