Package org.cactoos.text
Class IoCheckedText
- java.lang.Object
-
- org.cactoos.text.IoCheckedText
-
- All Implemented Interfaces:
Text
public final class IoCheckedText extends Object implements Text
Text that doesn't throw checkedException
, but only throwsIOException
.There is no thread-safety guarantee.
- Since:
- 0.51
-
-
Constructor Summary
Constructors Constructor Description IoCheckedText(CharSequence txt)
Ctor.IoCheckedText(Text txt)
Ctor.IoCheckedText(Text txt, Func<Exception,String> fbk)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
Convert it to the string.boolean
equals(Object obj)
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
IoCheckedText
public IoCheckedText(CharSequence txt)
Ctor.- Parameters:
txt
- Encapsulated text- Since:
- 0.9
-
IoCheckedText
public IoCheckedText(Text txt)
Ctor.- Parameters:
txt
- Encapsulated text
-
-
Method Detail
-
asString
public String asString() throws IOException
Description copied from interface:Text
Convert it to the string.- Specified by:
asString
in interfaceText
- Returns:
- The string
- Throws:
IOException
-
-