summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/textreader/SimpleTextInput.java
blob: a9f9e14809044397529b1ae830243e86c78d8afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.earth2me.essentials.textreader;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;


public class SimpleTextInput implements IText
{
	private final transient List<String> lines = new ArrayList<String>();
	
	public SimpleTextInput (final String input) {
		lines.add(input);
	}
		
	@Override
	public List<String> getLines()
	{
		return lines;
	}

	@Override
	public List<String> getChapters()
	{
		return Collections.emptyList();
	}

	@Override
	public Map<String, Integer> getBookmarks()
	{
		return Collections.emptyMap();
	}
	
}