public FileEntry createFile(String name,byte[] content,String mediaType) throws ForbiddenException, ConflictException, ServerException {
  if (isRoot(getVirtualFile())) {
    throw new ForbiddenException("Can't create file in root folder.");
  }
  return createFile(name,content == null ? null : new ByteArrayInputStream(content),mediaType);
}

public FileEntry createFile ( String name , byte [ ] content , String mediaType ) throws ForbiddenException , ConflictException , ServerException { if ( isRoot ( getVirtualFile ( ) ) ) { throw new ForbiddenException ( "Can't create file in root folder." ) ; } return createFile ( name , content == null ? null : new ByteArrayInputStream ( content ) , mediaType ) ; }
creates new file in this folder .
