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

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

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

origin: biz.aQute.bnd/biz.aQute.bndlib

public static PrintWriter writer(OutputStream out) {
  return writer(out, UTF_8);
}
origin: org.osgi/osgi.enroute.configurer.simple.provider

public static OutputStream copy(Collection<?> c, OutputStream out) throws IOException {
  PrintWriter pw = writer(out);
  try {
    for (Object o : c) {
      pw.println(o);
    }
    return out;
  } finally {
    pw.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static OutputStream copy(Collection<?> c, OutputStream out) throws IOException {
  PrintWriter pw = writer(out);
  try {
    for (Object o : c) {
      pw.println(o);
    }
    return out;
  } finally {
    pw.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

public static OutputStream copy(Collection<?> c, OutputStream out) throws IOException {
  PrintWriter pw = writer(out);
  try {
    for (Object o : c) {
      pw.println(o);
    }
    return out;
  } finally {
    pw.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.resolve

public static OutputStream copy(Collection<?> c, OutputStream out) throws IOException {
  PrintWriter pw = writer(out);
  try {
    for (Object o : c) {
      pw.println(o);
    }
    return out;
  } finally {
    pw.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

public ResolverLogger(int level) {
  try {
    this.level = level;
    file = File.createTempFile("tmp", ".log");
    file.deleteOnExit();
    printer = IO.writer(file, UTF_8);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static void store(Object o, OutputStream out, Charset encoding) throws IOException {
  Writer w = writer(out, encoding);
  try {
    store(o, w);
  } finally {
    w.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

@Override
public void write(OutputStream out) throws IOException {
  PrintWriter pw = IO.writer(out, UTF_8);
  pw.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
  try {
    tag.print(0, pw);
  } finally {
    pw.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

public static OutputStream copy(Reader r, OutputStream out, Charset charset) throws IOException {
  Writer w = writer(out, charset);
  try {
    copy(r, w);
    return out;
  } finally {
    w.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

public static void store(Object o, OutputStream out, Charset encoding) throws IOException {
  Writer w = writer(out, encoding);
  try {
    store(o, w);
  } finally {
    w.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.repository

public static OutputStream copy(Reader r, OutputStream out, Charset charset) throws IOException {
  Writer w = writer(out, charset);
  try {
    copy(r, w);
    return out;
  } finally {
    w.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

public static OutputStream copy(Reader r, OutputStream out, Charset charset) throws IOException {
  Writer w = writer(out, charset);
  try {
    copy(r, w);
    return out;
  } finally {
    w.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void write(OutputStream out) throws IOException {
  PrintWriter pw = IO.writer(out, UTF_8);
  pw.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
  try {
    tag.print(0, pw);
  } finally {
    pw.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void write(OutputStream out) throws IOException {
  PrintWriter pw = IO.writer(out, UTF_8);
  pw.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
  try {
    tag.print(0, pw);
  } finally {
    pw.flush();
  }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

public static OutputStream copy(Reader r, OutputStream out, Charset charset) throws IOException {
  Writer w = writer(out, charset);
  try {
    copy(r, w);
    return out;
  } finally {
    w.flush();
  }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle

public static void store(Object o, OutputStream out, Charset encoding) throws IOException {
  Writer w = writer(out, encoding);
  try {
    store(o, w);
  } finally {
    w.flush();
  }
}
origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension

public static void store(Object o, OutputStream out, Charset encoding) throws IOException {
  Writer w = writer(out, encoding);
  try {
    store(o, w);
  } finally {
    w.flush();
  }
}
origin: biz.aQute.bnd/biz.aQute.bnd

private synchronized void save() throws Exception {
  Path index = indexFile.toPath();
  Path tmp = Files.createTempFile(IO.mkdirs(index.getParent()), "index", null);
  try (PrintWriter pw = IO.writer(tmp)) {
    archives.keySet()
      .stream()
      .sorted()
      .forEachOrdered(archive -> pw.println(archive));
  }
  IO.rename(tmp, index);
  lastModified = indexFile.lastModified();
}
origin: biz.aQute.bnd/biz.aQute.repository

private synchronized void save() throws Exception {
  Path index = indexFile.toPath();
  Path tmp = Files.createTempFile(IO.mkdirs(index.getParent()), "index", null);
  try (PrintWriter pw = IO.writer(tmp)) {
    archives.keySet()
      .stream()
      .sorted()
      .forEachOrdered(archive -> pw.println(archive));
  }
  IO.rename(tmp, index);
  lastModified = indexFile.lastModified();
}
origin: biz.aQute.bnd/biz.aQute.bndlib

@Override
public void write(OutputStream out) throws IOException {
  try {
    finish();
  } catch (Exception e) {
    throw new RuntimeException(e);
  }
  PrintWriter pw = IO.writer(out, UTF_8);
  pw.print("<?xml version='1.0' encoding='UTF-8'?>\n");
  metadata.print(0, pw);
  pw.flush();
}
aQute.lib.ioIOwriter

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
  • 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
  • traverse
  • stream,
  • traverse,
  • close,
  • createSymbolicLink,
  • createSymbolicLinkOrCopy,
  • createTempFile,
  • decode,
  • mkdirs,
  • normalizePath

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Collectors (java.util.stream)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top Sublime Text plugins
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