Write model jar file with nullability model at DEFAULT_ASTUBX_LOCATION

@param outPath Path of output model jar file.
430992
private static void writeModelJAR(String outPath) throws IOException {
    Preconditions.checkArgument(
        outPath.endsWith(MODEL_JAR_SUFFIX), "invalid model file path! " + outPath);
    ZipOutputStream zos = new ZipOutputStream(new FileOutputStream(outPath));
    if (!map_result.isEmpty()) {
      ZipEntry entry = new ZipEntry(DEFAULT_ASTUBX_LOCATION);
      // Set the modification/creation time to 0 to ensure that this jars always have the same
      // checksum
      entry.setTime(0);
      entry.setCreationTime(FileTime.fromMillis(0));
      zos.putNextEntry(entry);
      writeModel(new DataOutputStream(zos));
      zos.closeEntry();
    }
    zos.close();
    LOG(VERBOSE, "Info", "wrote model to: " + outPath);
  }
1225805
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
    {
        out.writeObject(getContextPath());
        out.writeObject(getVirtualHosts());
        HttpHandler[] handlers= getHandlers();
        for (int i= 0; i < handlers.length; i++)
        {
            if (handlers[i] instanceof WebApplicationHandler)
                break;
            out.writeObject(handlers[i]);
        }
        out.writeObject(getAttributes());
        out.writeBoolean(isRedirectNullPath());
        out.writeInt(getMaxCachedFileSize());
        out.writeInt(getMaxCacheSize());
        out.writeBoolean(getStatsOn());
        out.writeObject(getPermissions());
        out.writeBoolean(isClassLoaderJava2Compliant());

        out.writeObject(_defaultsDescriptor);
        out.writeObject(_war);
        out.writeBoolean(_extract);
        out.writeBoolean(_ignorewebjetty);
        out.writeBoolean(_distributable);
        
        out.writeObject(_configurationClassNames);
    }
997773
public static void write (SimpleMisoSceneModel model, Json.Writer out) {
        out.object(); // outer
        out.value("width", model.width);
        out.value("height", model.height);
        out.value("viewwidth", model.vwidth);
        out.value("viewheight", model.vheight);

        out.array("base");
        for (int tileId : model.baseTileIds) out.value(tileId);
        out.end();

        out.array("objects");
        for (int ii = 0; ii < model.objectTileIds.length; ii++) {
            out.object();
            out.value("tileId", model.objectTileIds[ii]);
            out.value("x", model.objectXs[ii]);
            out.value("y", model.objectYs[ii]);
            out.end();
        }
        for (ObjectInfo info : model.objectInfo) {
            out.object();
            out.value("tileId", info.tileId);
            out.value("x", info.x);
            out.value("y", info.y);
            if (info.action != null) out.value("action", info.action);
            if (info.priority != 0) out.value("priority", info.priority);
            if (info.sx != 0 || info.sy != 0) {
                out.value("sx", info.sx);
                out.value("sy", info.sy);
                out.value("sorient", info.sorient);
            }
            if (info.zations != 0) out.value("zations", info.zations);
        }
        out.end(); // objects
        out.end(); // outer
    }
694355
void write(ObjectOutputStream out) throws IOException {
        PutField fields = out.putFields();

        fields.put(CONTEXT, threadContextDescriptor.serialize());

        fields.put(EXEC_PROPS, threadContextDescriptor.getExecutionProperties());

        fields.put(INTERNAL_PROP_NAMES, internalPropNames);

        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        ObjectOutputStream oout = new ObjectOutputStream(bout);
        oout.writeObject(object);
        oout.flush();
        fields.put(OBJECT, bout.toByteArray());
        oout.close();

        out.writeFields();
    }
679558
@Override
    public String getOutputFilePath(Map<String, Object> properties)
    {
        String path = (String) properties.get(SparkPropertiesConstants.HDFS_OUTPUT_FILE_PATH);
        if (path == null || path.isEmpty())
        {
            throw new KunderaException(
                    "Please set the path of outputfile while creating EntityManager using the property" + "\""
                            + SparkPropertiesConstants.HDFS_OUTPUT_FILE_PATH + "\".");
        }
        return path;
    }
443499
public void writeTo(final OutputStream out) throws IOException
	{
		if(out == null) throw new NullPointerException();
		
		final int n = arrays.size();
		for(int k = 0; k < n; k++) {
			byte[] src = (byte[])arrays.get(k);
			out.write(src);
		}
		if(pos > 0) out.write(buffer, 0, pos);
	}
353508
@CliObjectOption(description = "Write output to Avro files. Specify the output directory as argument.")
  public EmbeddedWikipediaExample avroOutput(String outputPath) {
    this.setConfiguration(ConfigurationKeys.WRITER_BUILDER_CLASS, AvroDataWriterBuilder.class.getName());
    this.setConfiguration(ConfigurationKeys.WRITER_DESTINATION_TYPE_KEY, Destination.DestinationType.HDFS.name());
    this.setConfiguration(ConfigurationKeys.WRITER_OUTPUT_FORMAT_KEY, WriterOutputFormat.AVRO.name());
    this.setConfiguration(ConfigurationKeys.WRITER_PARTITIONER_CLASS, WikipediaPartitioner.class.getName());
    this.setConfiguration(ConfigurationKeys.JOB_DATA_PUBLISHER_TYPE, BaseDataPublisher.class.getName());
    this.setConfiguration(ConfigurationKeys.CONVERTER_CLASSES_KEY, WikipediaConverter.class.getName());
    this.setConfiguration(ConfigurationKeys.DATA_PUBLISHER_FINAL_DIR, outputPath);
    return this;
  }
555827
def save(self, outpath):
        

        with open(outpath, "w") as outfile:
            outfile.write(self.dump())
460037
public static void mkdirs(final File outdir, final String path) {
        File d = new File(outdir, path);
        if (!d.exists()) {
            d.mkdirs();
        }
    }
931007
private void createOutputPathSettings()
	{

		outputLabel = new JLabel("Output Folder: ");
		outputLabel.setBorder(BorderFactory.createRaisedBevelBorder());
		outputLabel.setBounds(10, 10, 150, 25);
		this.add(outputLabel);

		outputPathField = new JTextField();
		outputPathField.setBounds(170, 10, 200, 25);
		this.add(outputPathField);
	}
1285883
protected void __setOutput(String path) {
        try {
            w_ = new BufferedWriter(new FileWriter(path));
        } catch (Exception e) {
            throw new FastRuntimeException(e.getMessage());
        }
    }
1328946
public final void addClassPathEntry (@Nullable final File path)
  {
    if (path != null)
      m_aClassPathEntries.add (path.getAbsolutePath ());
  }
910177
static void export(String xmlPath, List<JobDef> jobDefList, DbConn cnx) throws JqmXmlException
    {
        // Argument tests
        if (xmlPath == null)
        {
            throw new IllegalArgumentException("file path cannot be null");
        }

        // Create XML into file
        OutputStream os = null;
        try
        {
            os = new FileOutputStream(xmlPath);
            export(os, jobDefList, cnx);
        }
        catch (FileNotFoundException e)
        {
            throw new JqmXmlException(e);
        }
        finally
        {
            try
            {
                os.close();
            }
            catch (IOException e)
            {
                // Who cares.
            }
        }
    }
552699
public static <T extends BitWritable> void writeObject(final BitOutput output, final T value) throws IOException {
        if (output == null) {
            throw new NullPointerException("output is null");
        }
        if (value == null) {
            throw new NullPointerException("value is null");
        }
        value.write(output);
    }
622873
public void writeExternal(java.io.ObjectOutput objectOutput)
                    throws java.io.IOException
    {
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this, cclass
                        , "writeExternal"
                        , "objectOutput=" + objectOutput + "(java.io.ObjectOutput)"
                            );
        objectOutput.writeByte(externalVersion);
        objectOutput.writeInt(objectStoreIdentifier);
        objectOutput.writeLong(storedObjectIdentifier);

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass
                       , "writeExternal"
                            );
    }
20404
public Boolean writeThyFiles(String path) throws IOException
	{
		File modelThyFile = new File(path + modelThyName);
		FileUtils.writeStringToFile(modelThyFile, modelThy.getContent());

		File posThyFile = new File(path + posThyName);
		FileUtils.writeStringToFile(posThyFile, posThy);

		return true;
	}
97011
public static void writeSchema(String outputPath, Schema schema, JavaSparkContext sc) throws IOException {
        writeStringToFile(outputPath, schema.toString(), sc);
    }