FastaLineWrapper

class FastaLineWrapper(val wrapSize: Int = 60)

Simple class to place newline characters at fixed intervals while writing to output

Constructors

Link copied to clipboard
constructor(wrapSize: Int = 60)

Properties

Link copied to clipboard
Link copied to clipboard
val wrapSize: Int = 60

Functions

Link copied to clipboard
fun reset()

Resets the character counter

Link copied to clipboard
fun wrapLine(inLine: String): String

Takes an input string and places newline characters at fixed intervals. This adds with previous strings, so that a single line will never exceed wrapSize. Returns the string with added newline characters.