src/main/java/com/stijndepestel/geminio/Persister.java
/**
     * The function that can act as a Supplier to Replay.
     *
     * @return The loaded json.
     */
The function that can act as a Supplier to Replay.
@return The loaded json.
The function that can act as a Supplier to Replay . @return The loaded json .
public JSONObject load() {
        if (!this.inputStream.isPresent()) {
            throw new IllegalStateException("Input stream not present.");
        }
        try (final Scanner scanner = new Scanner(this.inputStream.get(),
                "UTF8")) {
            final StringBuilder sb = new StringBuilder(1024);
            while (scanner.hasNextLine()) {
                sb.append(scanner.nextLine());
            }
            return new JSONObject(sb.toString());
        }
    }
public JSONObject load ( ) { if ( ! this . inputStream . isPresent ( ) ) { throw new IllegalStateException ( "Input stream not present." ) ; } try ( final Scanner scanner = new Scanner ( this . inputStream . get ( ) , "UTF8" ) ) { final StringBuilder sb = new StringBuilder ( 1024 ) ; while ( scanner . hasNextLine ( ) ) { sb . append ( scanner . nextLine ( ) ) ; } return new JSONObject ( sb . toString ( ) ) ; } }
The function that can act as a Supplier to Replay.
The function that can act as a Supplier to Replay .