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

20
LINES

< > BotCompany Repo | #1027379 // readFluidTextFileEntry

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

Libraryless. Click here for Pure Java version (3018L/19K).

static FluidTextFileEntry readFluidTextFileEntry(Reader reader) {
  ret readFluidTextFileEntry(javaTok_onReader(reader));
}

static FluidTextFileEntry readFluidTextFileEntry(Producer<S> tokenizer) {
  new StringBuilder buf;
  S t;
  tokenizer.next(); // skip initial white space
  while ((t = tokenizer.next()) != null) {
    if (isMLS(t)) {
      //tokenizer.next(); // skip white space
      new FluidTextFileEntry e;
      e.params = parseEqualsCommaProperties(str(buf));
      e.quotedContent = t;
      ret e;
    } else
      buf.append(t); // part of entry header
  }
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027379
Snippet name: readFluidTextFileEntry
Eternal ID of this version: #1027379/3
Text MD5: e3d6e1e62961b2113dcbffd5073b1e7c
Transpilation MD5: 113e84ea4442d25c268f8f7f94832de9
Author: stefan
Category: javax / fluid text files
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-15 16:53:48
Source code size: 603 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 182 / 278
Version history: 2 change(s)
Referenced in: [show references]