Home
last modified time | relevance | path

Searched refs:lineLength (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DBase64.java130 public static Encoder getMimeEncoder(int lineLength, byte[] lineSeparator) { in getMimeEncoder() argument
138 if (lineLength <= 0) { in getMimeEncoder()
141 return new Encoder(false, lineSeparator, lineLength >> 2 << 2, true); in getMimeEncoder()
/libcore/luni/src/test/java/libcore/java/util/
DBase64Test.java1076 private static String wrapLines(String lineSeparator, String s, int lineLength) { in wrapLines() argument
1077 return String.join(lineSeparator, breakLines(s, lineLength)); in wrapLines()
1084 private static List<String> breakLines(String longString, int lineLength) { in breakLines() argument
1086 for (int pos = 0; pos < longString.length(); pos += lineLength) { in breakLines()
1087 lines.add(longString.substring(pos, Math.min(longString.length(), pos + lineLength))); in breakLines()