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).

1  
static FluidTextFileEntry readFluidTextFileEntry(Reader reader) {
2  
  ret readFluidTextFileEntry(javaTok_onReader(reader));
3  
}
4  
5  
static FluidTextFileEntry readFluidTextFileEntry(Producer<S> tokenizer) {
6  
  new StringBuilder buf;
7  
  S t;
8  
  tokenizer.next(); // skip initial white space
9  
  while ((t = tokenizer.next()) != null) {
10  
    if (isMLS(t)) {
11  
      //tokenizer.next(); // skip white space
12  
      new FluidTextFileEntry e;
13  
      e.params = parseEqualsCommaProperties(str(buf));
14  
      e.quotedContent = t;
15  
      ret e;
16  
    } else
17  
      buf.append(t); // part of entry header
18  
  }
19  
  null;
20  
}

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: 184 / 280
Version history: 2 change(s)
Referenced in: [show references]