Package org.takes.rs
Class HeadPrint
- java.lang.Object
-
- org.takes.rs.HeadPrint
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
Iterable<String>
head()
All lines above the body.
-
-
-
Constructor Detail
-
HeadPrint
public HeadPrint(Head head)
Ctor.- Parameters:
head
- Original head
-
-
Method Detail
-
asString
public String asString() throws IOException
- Specified by:
asString
in interfaceorg.cactoos.Text
- Throws:
IOException
-
head
public Iterable<String> head() throws IOException
Description copied from interface:Head
All lines above the body.- Specified by:
head
in interfaceHead
- Returns:
- List of lines
- Throws:
IOException
- If something goes wrong
-
-