将pojo写入本地excel

@param datas    pojo数据
@param hasTitle 是否需要标题
@param path     excel本地路径
@param transverse 是否横向写入（一列对应一个pojo，标题在第一列），默认false（一行一个pojo，标题在第一行）
@throws IOException IO异常
778124
public void writeToExcel(List<? extends Object> datas, boolean hasTitle, String path,
                             boolean transverse) throws IOException {
        writeToExcel(datas, hasTitle, path, IN_MEMORY, transverse);
    }
101211
public static Single<Boolean> exists(String path) {
        return SingleRxXian.call("cosService", "cosCheckFileExists", new JSONObject() {{
            put("path", path);
        }}).map(UnitResponse::dataToBoolean);
    }
1069134
public static <T> T readObjectFromFile(String path, Class<T> type, SparkContext sc) throws IOException {
        FileSystem fileSystem = FileSystem.get(sc.hadoopConfiguration());
        try (ObjectInputStream ois = new ObjectInputStream(new BufferedInputStream(fileSystem.open(new Path(path))))) {
            Object o;
            try {
                o = ois.readObject();
            } catch (ClassNotFoundException e) {
                throw new RuntimeException(e);
            }

            return (T) o;
        }
    }
1056800
@Override
  public void initialize(String path, List<String> columns) throws IOException,
      UnsupportedOperationException {
    super.initialize(path, columns);
    initializeInternal();
  }
1070536
public AbstractBooleanAssert<?> jsonPathAsBoolean(String path) {
        return Assertions.assertThat(actual.read(path, Boolean.class));
    }
1176425
@Override
    public Promise<Void> writeFile(String path, Buffer data) {
        return adapter.toPromise(handler -> vertx.fileSystem().writeFile(path, data, handler));
    }
576141
private DataSource lookupDS(InitialContext ctx, String path) {
        try {
            return (DataSource) ctx.lookup(path);
        } catch (NamingException e) {
            return null;
        }
    }
117822
public boolean load(String path)
    {
        String binPath = path + Predefine.BIN_EXT;
        if (load(ByteArrayStream.createByteArrayStream(binPath))) return true;
        if (!loadTxt(path)) return false;
        try
        {
            logger.info("正在缓存" + binPath);
            DataOutputStream out = new DataOutputStream(IOUtil.newOutputStream(binPath));
            save(out);
            out.close();
        }
        catch (Exception e)
        {
            logger.warning("缓存" + binPath + "失败：\n" + TextUtility.exceptionToString(e));
        }

        return true;
    }
316009
public static void writeStringToFile(String path, String toWrite, SparkContext sc) throws IOException {
        writeStringToFile(path, toWrite, sc.hadoopConfiguration());
    }
241312
public void setPath(int pathId, String path) {
        PreparedStatement statement = null;
        try (Connection sqlConnection = sqlService.getConnection()) {
            statement = sqlConnection.prepareStatement(
                "UPDATE " + Constants.DB_TABLE_PATH +
                    " SET " + Constants.PATH_PROFILE_ACTUAL_PATH + " = ? " +
                    " WHERE " + Constants.GENERIC_ID + " = ?"
            );
            statement.setString(1, path);
            statement.setInt(2, pathId);
            statement.executeUpdate();
            statement.close();
        } catch (SQLException e) {
            e.printStackTrace();
        } finally {
            try {
                if (statement != null) {
                    statement.close();
                }
            } catch (Exception e) {
            }
        }
    }
1240823
@Override
  public boolean ruleFileExists(String path) {
    String completePath = getCompleteRulesUrl(path);
    return ResourceDataBroker.class.getResource(completePath) != null;
  }
893279
public void writeToExcel(List<? extends Object> datas, boolean hasTitle,
                             OutputStream outputStream, boolean transverse) throws IOException {
        writeToExcel(datas, hasTitle, outputStream, IN_MEMORY, transverse);
    }
184242
public CsvData read(Path path, Charset charset) throws IORuntimeException {
		Assert.notNull(path, "path must not be null");
		try (Reader reader = FileUtil.getReader(path, charset)) {
			return read(reader);
		} catch (IOException e) {
			throw new IORuntimeException(e);
		}
	}
900461
public function setPathData(Path $path = null, $active = true, $limited = false, $inSitemap = true)
	{
//		\Log::debug('QQQ: ', $this->getId(), ' - ', $this->getPathEntity()->isVisibleInSitemap(), ' --> ', $inSitemap);

		$this->getPathEntity()->setPath($path);
		$this->getPathEntity()->setActive($active);
		$this->getPathEntity()->setVisibleInSitemap($inSitemap);
	}
736962
public boolean setData(String path, String value, boolean createNodes)
            throws ZooKeeperException {
        return _write(path, value != null ? value.getBytes(UTF8) : null, createNodes);
    }
633940
public static <T> T readObjectFromFile(String path, Class<T> type, SparkContext sc) throws IOException {
        return readObjectFromFile(path, type, sc.hadoopConfiguration());
    }
674825
@SuppressWarnings("unchecked")
    public Q load(Path<?>... paths) {
        Set<String> fields = new HashSet<String>();
        for (Path<?> path : paths) {
            fields.add(serializer.toField(path));
        }
        this.fieldsToLoad = fields;
        return (Q) this;
    }