What is the groovy << operator mean in this context?

In a groovy tutorial, I encountered the following code:

class DateTagLib {
  def thisYear = {
    out << Calendar.getInstance().get(Calendar.YEAR)
  }
}

I don't know what the << means, and I'm having no luck with google.

Edit: I now know that << sometimes is a bit shift. But what does it mean here?

37
задан Eric Wilson 4 September 2010 в 07:20
поделиться