Java Serialize serializeDistributionType(String distributionType, String HadoopDistribution)

Here you can find the source of serializeDistributionType(String distributionType, String HadoopDistribution)

Description

serialize Distribution Type

License

LGPL

Declaration

private static void serializeDistributionType(String distributionType, String HadoopDistribution)
            throws IOException 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.io.File;

import java.io.FileWriter;
import java.io.IOException;

public class Main {
    private static void serializeDistributionType(String distributionType, String HadoopDistribution)
            throws IOException {
        FileWriter writer = new FileWriter(new File("./WEB-INF/classes/distributionInfo.properties"));
        writer.write("DistributionType=" + distributionType);
        writer.write("\n");
        writer.write("HadoopDistribution=" + HadoopDistribution);
        writer.close();/*from   ww w. java2  s .c  om*/
    }
}

Related

  1. serializeClone(final Object obj)
  2. serializeCookie(Object object, String filePath)
  3. serializedCopy(Object obj)
  4. serializedCopy(T object)
  5. serializeExecutor(Object executor)
  6. serializeFromString(final String pString)
  7. serializeGZip(T obj)
  8. serializeInt(int i)