faviKonSnoop/src/test/kotlin/Utils.kt
author Da Risk <da_risk@geekorum.com>
Fri, 07 Feb 2020 00:03:27 -0400
changeset 611 91b8d76c03cd
parent 455 c743a2f2ca8a
child 846 ac0863af5ef6
permissions -rw-r--r--
Update copyrights headers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
455
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     1
/*
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     2
 * Geekttrss is a RSS feed reader application on the Android Platform.
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     3
 *
611
91b8d76c03cd Update copyrights headers
Da Risk <da_risk@geekorum.com>
parents: 455
diff changeset
     4
 * Copyright (C) 2017-2020 by Frederic-Charles Barthelery.
455
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     5
 *
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     6
 * This file is part of Geekttrss.
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     7
 *
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     8
 * Geekttrss is free software: you can redistribute it and/or modify
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
     9
 * it under the terms of the GNU General Public License as published by
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    10
 * the Free Software Foundation, either version 3 of the License, or
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    11
 * (at your option) any later version.
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    12
 *
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    13
 * Geekttrss is distributed in the hope that it will be useful,
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    16
 * GNU General Public License for more details.
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    17
 *
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    18
 * You should have received a copy of the GNU General Public License
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    19
 * along with Geekttrss.  If not, see <http://www.gnu.org/licenses/>.
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    20
 */
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    21
package com.geekorum.favikonsnoop
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    22
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    23
import okio.BufferedSource
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    24
import okio.buffer
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    25
import okio.source
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    26
c743a2f2ca8a faviKonSnoop: switch input to okio source
Da Risk <da_risk@geekorum.com>
parents:
diff changeset
    27
fun String.source(): BufferedSource = byteInputStream().source().buffer()