Tabnine Logo
IO.outputStream
Code IndexAdd Tabnine to your IDE (free)

How to use
outputStream
method
in
aQute.lib.io.IO

Best Java code snippets using aQute.lib.io.IO.outputStream (Showing top 20 results out of 315)

origin: biz.aQute.bnd/biz.aQute.repository

public static OutputStream outputStream(File file) throws IOException {
  return outputStream(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.resolve

public static OutputStream outputStream(File file) throws IOException {
  return outputStream(file.toPath());
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

public static OutputStream outputStream(File file) throws IOException {
  return outputStream(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.bnd

public static OutputStream outputStream(File file) throws IOException {
  return outputStream(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static OutputStream outputStream(File file) throws IOException {
  return outputStream(file.toPath());
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

public static OutputStream outputStream(File file) throws IOException {
  return outputStream(file.toPath());
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public Object decode(Decoder dec, String s) throws Exception {
  File tmp = File.createTempFile("json", ".bin");
  try (OutputStream fout = IO.outputStream(tmp)) {
    Base64.decode(new StringReader(s), fout);
  }
  return tmp;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private void saveProperties() throws IOException {
  if (propertiesChanged) {
    try (OutputStreamWriter osw = new OutputStreamWriter(IO.outputStream(propertiesFile))) {
      properties.store(osw, "");
    } finally {
      properties = null;
      propertiesChanged = false;
    }
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

private void saveProperties() throws IOException {
  if (propertiesChanged) {
    try (OutputStreamWriter osw = new OutputStreamWriter(IO.outputStream(propertiesFile))) {
      properties.store(osw, "");
    } finally {
      properties = null;
      propertiesChanged = false;
    }
  }
}
origin: org.osgi/osgi.enroute.configurer.simple.provider

@Override
public Object decode(Decoder dec, String s) throws Exception {
  File tmp = File.createTempFile("json", ".bin");
  try (OutputStream fout = IO.outputStream(tmp)) {
    Base64.decode(new StringReader(s), fout);
  }
  return tmp;
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public Object decode(Decoder dec, String s) throws Exception {
  File tmp = File.createTempFile("json", ".bin");
  try (OutputStream fout = IO.outputStream(tmp)) {
    Base64.decode(new StringReader(s), fout);
  }
  return tmp;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public Encoder to(File file) throws IOException {
  return to(IO.outputStream(file));
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private File write(File base, Resource r, String fileName) throws Exception {
  File f = Processor.getFile(base, fileName);
  try (OutputStream out = IO.outputStream(f)) {
    r.write(out);
  }
  return f;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public void save(File location) throws IOException {
  if (location.getName()
    .endsWith(".gz"))
    compress = true;
  IO.mkdirs(location.getParentFile());
  File tmp = IO.createTempFile(location.getParentFile(), "index", ".xml");
  try (OutputStream out = IO.outputStream(tmp)) {
    save(out);
  }
  IO.rename(tmp, location);
}
origin: biz.aQute.bnd/biz.aQute.bnd

private File write(File base, Resource r, String fileName) throws Exception {
  File f = Processor.getFile(base, fileName);
  try (OutputStream out = IO.outputStream(f)) {
    r.write(out);
  }
  return f;
}
origin: biz.aQute.bnd/biz.aQute.bnd

private File write(File base, Resource r, String fileName) throws Exception {
  File f = Processor.getFile(base, fileName);
  try (OutputStream out = IO.outputStream(f)) {
    r.write(out);
  }
  return f;
}
origin: biz.aQute.bnd/biz.aQute.bnd

public void save(File location) throws IOException {
  if (location.getName()
    .endsWith(".gz"))
    compress = true;
  IO.mkdirs(location.getParentFile());
  File tmp = IO.createTempFile(location.getParentFile(), "index", ".xml");
  try (OutputStream out = IO.outputStream(tmp)) {
    save(out);
  }
  IO.rename(tmp, location);
}
origin: biz.aQute.bnd/biz.aQute.bndlib

private File write(File base, Resource r, String fileName) throws Exception {
  File f = Processor.getFile(base, fileName);
  try (OutputStream out = IO.outputStream(f)) {
    r.write(out);
  }
  return f;
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public void write(File file) throws Exception {
  check();
  try (OutputStream out = IO.outputStream(file)) {
    write(out);
  } catch (Exception t) {
    IO.delete(file);
    throw t;
  }
  file.setLastModified(lastModified);
}
origin: biz.aQute.bnd/biz.aQute.bnd

public void write(File file) throws Exception {
  check();
  try (OutputStream out = IO.outputStream(file)) {
    write(out);
  } catch (Exception t) {
    IO.delete(file);
    throw t;
  }
  file.setLastModified(lastModified);
}
aQute.lib.ioIOoutputStream

Popular methods of IO

  • copy
  • collect
  • getFile
  • deleteWithException
    Deletes the specified path. Folders are recursively deleted. Throws exception if any of the files co
  • reader
  • store
  • writer
  • delete
    Deletes the specified path. Folders are recursively deleted. If file(s) cannot be deleted, no feedba
  • read
  • rename
    Renames from to to replacing the target file if necessary.
  • isSymbolicLink
  • stream
  • isSymbolicLink,
  • stream,
  • traverse,
  • close,
  • createSymbolicLink,
  • createSymbolicLinkOrCopy,
  • createTempFile,
  • decode,
  • mkdirs,
  • normalizePath

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Notification (javax.management)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now