mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-06 09:36:40 +00:00
move this back
This commit is contained in:
21
proxy/src/main/java/com/moandjiezana/toml/ValueReader.java
Normal file
21
proxy/src/main/java/com/moandjiezana/toml/ValueReader.java
Normal file
@ -0,0 +1,21 @@
|
||||
package com.moandjiezana.toml;
|
||||
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
interface ValueReader {
|
||||
|
||||
/**
|
||||
* @param s must already have been trimmed
|
||||
*/
|
||||
boolean canRead(String s);
|
||||
|
||||
/**
|
||||
* Partial validation. Stops after type terminator, rather than at EOI.
|
||||
*
|
||||
* @param s must already have been validated by {@link #canRead(String)}
|
||||
* @param index where to start in s
|
||||
* @param line current line number, used for error reporting
|
||||
* @return a value or a {@link Results.Errors}
|
||||
*/
|
||||
Object read(String s, AtomicInteger index, Context context);
|
||||
}
|
Reference in New Issue
Block a user