Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1018310 // subBot_serveText - for sub-bots

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3843L/22K).

sO subBot_serveText(O s) {
  ret call(getMainBot(), "serveByteArray", toUtf8(str(s)), "text/plain; charset=utf8");
}

sO subBot_serveText(InputStream in) {
  ret subBot_serveInputStream(in, "text/plain; charset=utf8");
}

sO subBot_serveText(File f) {
  ret subBot_serveFile(f, "text/plain; charset=utf8");
}

Author comment

Began life as a copy of #1007901

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1018310
Snippet name: subBot_serveText - for sub-bots
Eternal ID of this version: #1018310/3
Text MD5: 24a81c36257ee9a67f6e9868685c883b
Transpilation MD5: ae2f262f855f4f8e9bd9c19163e1e791
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-22 23:59:09
Source code size: 318 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 304 / 370
Version history: 2 change(s)
Referenced in: [show references]