title: Split Java String in chunks of 1024 bytes
body: <p>What's an efficient way of splitting a String into chunks of 1024 bytes in java?
  If there is more than one chunk then the header(fixed size string) needs to be repeated in all subsequent chunks.</p>