Tabnine Logo
IndentingWriter.writeLine
Code IndexAdd Tabnine to your IDE (free)

How to use
writeLine
method
in
org.jf.util.IndentingWriter

Best Java code snippets using org.jf.util.IndentingWriter.writeLine (Showing top 15 results out of 315)

origin: testwhat/SmaliEx

public void printUnsignedLongAsHex(long value) throws IOException {
  int bufferIndex = 23;
  do {
    int digit = (int)(value & 15);
    if (digit < 10) {
      buffer[bufferIndex--] = (char)(digit + '0');
    } else {
      buffer[bufferIndex--] = (char)((digit - 10) + 'a');
    }
    value >>>= 4;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 24-bufferIndex);
}
origin: org.smali/dexlib2

public void printUnsignedLongAsHex(long value) throws IOException {
  int bufferIndex = 23;
  do {
    int digit = (int)(value & 15);
    if (digit < 10) {
      buffer[bufferIndex--] = (char)(digit + '0');
    } else {
      buffer[bufferIndex--] = (char)((digit - 10) + 'a');
    }
    value >>>= 4;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 24-bufferIndex);
}
origin: KB5201314/ZjDroid

public void printUnsignedLongAsHex(long value) throws IOException {
  int bufferIndex = 23;
  do {
    int digit = (int)(value & 15);
    if (digit < 10) {
      buffer[bufferIndex--] = (char)(digit + '0');
    } else {
      buffer[bufferIndex--] = (char)((digit - 10) + 'a');
    }
    value >>>= 4;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 24-bufferIndex);
}
origin: testwhat/SmaliEx

@Override
public void write(char[] chars, int start, int len) throws IOException {
  final int end = start+len;
  int pos = start;
  while (pos < end) {
    if (chars[pos] == '\n') {
      writeLine(chars, start, pos-start);
      writer.write(newLine);
      beginningOfLine = true;
      pos++;
      start = pos;
    } else {
      pos++;
    }
  }
  writeLine(chars, start, pos-start);
}
origin: org.smali/dexlib2

@Override
public void write(char[] chars, int start, int len) throws IOException {
  final int end = start+len;
  int pos = start;
  while (pos < end) {
    if (chars[pos] == '\n') {
      writeLine(chars, start, pos-start);
      writer.write(newLine);
      beginningOfLine = true;
      pos++;
      start = pos;
    } else {
      pos++;
    }
  }
  writeLine(chars, start, pos-start);
}
origin: KB5201314/ZjDroid

@Override
public void write(char[] chars, int start, int len) throws IOException {
  final int end = start+len;
  int pos = start;
  while (pos < end) {
    if (chars[pos] == '\n') {
      writeLine(chars, start, pos-start);
      writer.write(newLine);
      beginningOfLine = true;
      pos++;
      start = pos;
    } else {
      pos++;
    }
  }
  writeLine(chars, start, pos-start);
}
origin: testwhat/SmaliEx

@Override
public void write(String str, int start, int len) throws IOException {
  final int end = start+len;
  int pos = start;
  while (pos < end) {
    pos = str.indexOf('\n', start);
    if (pos == -1 || pos >= end) {
      writeLine(str, start, end-start);
      return;
    } else {
      writeLine(str, start, pos-start);
      writer.write(newLine);
      beginningOfLine = true;
      start = pos+1;
    }
  }
}
origin: org.smali/dexlib2

@Override
public void write(String str, int start, int len) throws IOException {
  final int end = start+len;
  int pos = start;
  while (pos < end) {
    pos = str.indexOf('\n', start);
    if (pos == -1 || pos >= end) {
      writeLine(str, start, end-start);
      return;
    } else {
      writeLine(str, start, pos-start);
      writer.write(newLine);
      beginningOfLine = true;
      start = pos+1;
    }
  }
}
origin: KB5201314/ZjDroid

@Override
public void write(String str, int start, int len) throws IOException {
  final int end = start+len;
  int pos = start;
  while (pos < end) {
    pos = str.indexOf('\n', start);
    if (pos == -1) {
      writeLine(str, start, end-start);
      return;
    } else {
      writeLine(str, start, pos-start);
      writer.write(newLine);
      beginningOfLine = true;
      start = pos+1;
    }
  }
}
origin: testwhat/SmaliEx

public void printSignedLongAsDec(long value) throws IOException {
  int bufferIndex = 23;
  if (value < 0) {
    value *= -1;
    write('-');
  }
  do {
    long digit = value % 10;
    buffer[bufferIndex--] = (char)(digit + '0');
    value = value / 10;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 24-bufferIndex);
}
origin: testwhat/SmaliEx

public void printSignedIntAsDec(int value) throws IOException {
  int bufferIndex = 15;
  if (value < 0) {
    value *= -1;
    write('-');
  }
  do {
    int digit = value % 10;
    buffer[bufferIndex--] = (char)(digit + '0');
    value = value / 10;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 16-bufferIndex);
}
origin: org.smali/dexlib2

public void printSignedLongAsDec(long value) throws IOException {
  int bufferIndex = 23;
  if (value < 0) {
    value *= -1;
    write('-');
  }
  do {
    long digit = value % 10;
    buffer[bufferIndex--] = (char)(digit + '0');
    value = value / 10;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 24-bufferIndex);
}
origin: KB5201314/ZjDroid

public void printSignedLongAsDec(long value) throws IOException {
  int bufferIndex = 23;
  if (value < 0) {
    value *= -1;
    write('-');
  }
  do {
    long digit = value % 10;
    buffer[bufferIndex--] = (char)(digit + '0');
    value = value / 10;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 24-bufferIndex);
}
origin: KB5201314/ZjDroid

public void printSignedIntAsDec(int value) throws IOException {
  int bufferIndex = 15;
  if (value < 0) {
    value *= -1;
    write('-');
  }
  do {
    int digit = value % 10;
    buffer[bufferIndex--] = (char)(digit + '0');
    value = value / 10;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 16-bufferIndex);
}
origin: org.smali/dexlib2

public void printSignedIntAsDec(int value) throws IOException {
  int bufferIndex = 15;
  if (value < 0) {
    value *= -1;
    write('-');
  }
  do {
    int digit = value % 10;
    buffer[bufferIndex--] = (char)(digit + '0');
    value = value / 10;
  } while (value != 0);
  bufferIndex++;
  writeLine(buffer, bufferIndex, 16-bufferIndex);
}
org.jf.utilIndentingWriterwriteLine

Javadoc

Writes out a block of text that contains no newlines

Popular methods of IndentingWriter

  • <init>
  • write
  • printSignedIntAsDec
  • writeIndent
  • deindent
  • indent
  • printUnsignedIntAsDec
  • printUnsignedLongAsHex
  • printSignedLongAsDec
  • close
  • flush
  • flush

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Vim 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